summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar j-selby2017-08-10 14:17:27 +1000
committerGravatar j-selby2017-08-10 17:40:56 +1000
commit80f85b429c7cfce70535e68014ed1bf5dcdfbc03 (patch)
tree2134f2106f3849efbf1b67a640fdcfec960f8ffe
parentMerge pull request #2857 from j-selby/deploy-fix (diff)
downloadyuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.gz
yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.xz
yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.zip
Implement correct folder structure for CI builds
-rwxr-xr-x.travis-upload.sh11
-rw-r--r--appveyor.yml20
2 files changed, 23 insertions, 8 deletions
diff --git a/.travis-upload.sh b/.travis-upload.sh
index 17959b0e1..8c1fa21c5 100755
--- a/.travis-upload.sh
+++ b/.travis-upload.sh
@@ -123,9 +123,16 @@ cp README.md "$REV_NAME"
123 123
124tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME" 124tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME"
125 125
126mv "$REV_NAME" nightly 126# Find out what release we are building
127if [ -z $TRAVIS_TAG ]; then
128 RELEASE_NAME=head
129else
130 RELEASE_NAME=$(echo $TRAVIS_TAG | cut -d- -f1)
131fi
132
133mv "$REV_NAME" $RELEASE_NAME
127 134
1287z a "$REV_NAME.7z" nightly 1357z a "$REV_NAME.7z" $RELEASE_NAME
129 136
130# move the compiled archive into the artifacts directory to be uploaded by travis releases 137# move the compiled archive into the artifacts directory to be uploaded by travis releases
131mv "$ARCHIVE_NAME" artifacts/ 138mv "$ARCHIVE_NAME" artifacts/
diff --git a/appveyor.yml b/appveyor.yml
index eb4e7df87..94e9969f5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -46,13 +46,21 @@ after_build:
46 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb 46 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
47 rm .\build\bin\release\*.pdb 47 rm .\build\bin\release\*.pdb
48 48
49 mkdir nightly 49 # Find out which kind of release we are producing by tag name
50 Copy-Item .\build\bin\release\* -Destination nightly -Recurse 50 if ($env:APPVEYOR_REPO_TAG_NAME) {
51 Copy-Item .\license.txt -Destination nightly 51 $RELEASE_DIST, $RELEASE_VERSION = $env:APPVEYOR_REPO_TAG_NAME.split('-')
52 Copy-Item .\README.md -Destination nightly 52 } else {
53 # There is no repo tag - make assumptions
54 $RELEASE_DIST = "head"
55 }
53 56
54 7z a -tzip $MSVC_BUILD_NAME nightly\* 57 mkdir $RELEASE_DIST
55 7z a $MSVC_SEVENZIP nightly 58 Copy-Item .\build\bin\release\* -Destination $RELEASE_DIST -Recurse
59 Copy-Item .\license.txt -Destination $RELEASE_DIST
60 Copy-Item .\README.md -Destination $RELEASE_DIST
61
62 7z a -tzip $MSVC_BUILD_NAME $RELEASE_DIST\*
63 7z a $MSVC_SEVENZIP $RELEASE_DIST
56 64
57test_script: 65test_script:
58 - cd build && ctest -VV -C Release && cd .. 66 - cd build && ctest -VV -C Release && cd ..