summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml20
1 files changed, 14 insertions, 6 deletions
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 ..