onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 1 | # http://www.appveyor.com/docs/appveyor-yml |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 2 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 3 | notifications: |
| 4 | - provider: Email |
onqtam | f516977 | 2016-09-09 18:33:13 +0300 | [diff] [blame] | 5 | on_build_status_changed: false |
| 6 | on_build_failure: false |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 7 | on_build_success: false |
| 8 | # gitter |
| 9 | - provider: Webhook |
| 10 | url: https://webhooks.gitter.im/e/3a78202a235c0325e516 |
| 11 | on_build_status_changed: true |
| 12 | on_build_failure: true |
| 13 | on_build_success: false |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 14 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 15 | clone_depth: 500 |
| 16 | branches: |
| 17 | except: |
| 18 | - gh-pages |
| 19 | - coverity_scan |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 20 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 21 | matrix: |
| 22 | fast_finish: false |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 23 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 24 | environment: |
| 25 | matrix: |
onqtam | 2a921f2 | 2017-03-15 15:07:49 +0200 | [diff] [blame] | 26 | - gen: "MinGW Makefiles" |
| 27 | - gen: "Visual Studio 9 2008" |
| 28 | - gen: "Visual Studio 10 2010" |
| 29 | - gen: "Visual Studio 11 2012" |
| 30 | - gen: "Visual Studio 12 2013" |
| 31 | - gen: "Visual Studio 14 2015" |
| 32 | - gen: "Visual Studio 15 2017" |
| 33 | APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 34 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 35 | install: |
onqtam | 2a921f2 | 2017-03-15 15:07:49 +0200 | [diff] [blame] | 36 | - IF "%gen%" == "MinGW Makefiles" appveyor-retry appveyor DownloadFile http://downloads.sourceforge.net/mingw-w64/x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z |
| 37 | - IF "%gen%" == "MinGW Makefiles" 7z x x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z -oc:\mingw > nul |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 38 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 39 | build_script: |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 40 | # workaround for CMake not wanting sh.exe on PATH for MinGW |
onqtam | 2a921f2 | 2017-03-15 15:07:49 +0200 | [diff] [blame] | 41 | - IF "%gen%" == "MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=% |
| 42 | - IF "%gen%" == "MinGW Makefiles" set PATH=C:\mingw\mingw64\bin;%PATH% |
| 43 | # generate and build everything for debug and release |
| 44 | - IF "%gen%" == "MinGW Makefiles" mkdir debug_64 |
| 45 | - IF "%gen%" == "MinGW Makefiles" cd debug_64 |
| 46 | - IF "%gen%" == "MinGW Makefiles" cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug |
| 47 | - IF "%gen%" == "MinGW Makefiles" cmake --build . |
| 48 | - IF "%gen%" == "MinGW Makefiles" cd .. |
| 49 | - IF "%gen%" == "MinGW Makefiles" mkdir release_64 |
| 50 | - IF "%gen%" == "MinGW Makefiles" cd release_64 |
| 51 | - IF "%gen%" == "MinGW Makefiles" cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release |
| 52 | - IF "%gen%" == "MinGW Makefiles" cmake --build . |
| 53 | - IF "%gen%" == "MinGW Makefiles" cd .. |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 54 | # adding git to the path again - for the dos2unix tool |
onqtam | 2a921f2 | 2017-03-15 15:07:49 +0200 | [diff] [blame] | 55 | - IF "%gen%" == "MinGW Makefiles" set PATH=%PATH%;C:\Program Files\Git\usr\bin |
| 56 | # execute tests |
| 57 | - IF "%gen%" == "MinGW Makefiles" cd debug_64 |
| 58 | - IF "%gen%" == "MinGW Makefiles" ctest --output-on-failure |
| 59 | - IF "%gen%" == "MinGW Makefiles" cd .. |
| 60 | - IF "%gen%" == "MinGW Makefiles" cd release_64 |
| 61 | - IF "%gen%" == "MinGW Makefiles" ctest --output-on-failure |
| 62 | - IF "%gen%" == "MinGW Makefiles" cd .. |
| 63 | # ============= VISUAL STUDIO |
| 64 | # x64 - not enabled for 2008 because cmake cannot find the compiler for Win64 |
| 65 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" mkdir debug_64 |
| 66 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cd debug_64 |
| 67 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cmake .. -G "%gen% Win64" |
| 68 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" msbuild all.sln /p:Configuration=Debug;Platform=x64 /maxcpucount |
| 69 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" ctest -C Debug --output-on-failure |
| 70 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cd .. |
| 71 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" mkdir release_64 |
| 72 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cd release_64 |
| 73 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cmake .. -G "%gen% Win64" |
| 74 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" msbuild all.sln /p:Configuration=Release;Platform=x64 /maxcpucount |
| 75 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" ctest -C Release --output-on-failure |
| 76 | - IF NOT "%gen%" == "MinGW Makefiles" IF NOT "%gen%" == "Visual Studio 9 2008" cd .. |
| 77 | # x86 |
| 78 | - IF NOT "%gen%" == "MinGW Makefiles" mkdir debug_86 |
| 79 | - IF NOT "%gen%" == "MinGW Makefiles" cd debug_86 |
| 80 | - IF NOT "%gen%" == "MinGW Makefiles" cmake .. -G "%gen%" |
| 81 | - IF NOT "%gen%" == "MinGW Makefiles" msbuild all.sln /p:Configuration=Debug;Platform=Win32 /maxcpucount |
| 82 | - IF NOT "%gen%" == "MinGW Makefiles" ctest -C Debug --output-on-failure |
| 83 | - IF NOT "%gen%" == "MinGW Makefiles" cd .. |
| 84 | - IF NOT "%gen%" == "MinGW Makefiles" mkdir release_86 |
| 85 | - IF NOT "%gen%" == "MinGW Makefiles" cd release_86 |
| 86 | - IF NOT "%gen%" == "MinGW Makefiles" cmake .. -G "%gen%" |
| 87 | - IF NOT "%gen%" == "MinGW Makefiles" msbuild all.sln /p:Configuration=Release;Platform=Win32 /maxcpucount |
| 88 | - IF NOT "%gen%" == "MinGW Makefiles" ctest -C Release --output-on-failure |
| 89 | - IF NOT "%gen%" == "MinGW Makefiles" cd .. |