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: |
| 26 | - platform: x86 |
| 27 | configuration: Debug |
| 28 | arch: "Win32" |
| 29 | VS_GEN: "" |
| 30 | - platform: x86 |
| 31 | configuration: Release |
| 32 | arch: "Win32" |
| 33 | VS_GEN: "" |
| 34 | - platform: x64 |
| 35 | configuration: Debug |
| 36 | arch: "x64" |
| 37 | VS_GEN: " Win64" |
| 38 | - platform: x64 |
| 39 | configuration: Release |
| 40 | arch: "x64" |
| 41 | VS_GEN: " Win64" |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 42 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 43 | install: |
| 44 | - appveyor-retry appveyor DownloadFile http://downloads.sourceforge.net/mingw-w64/x86_64-6.1.0-release-posix-seh-rt_v5-rev0.7z |
| 45 | - 7z x x86_64-6.1.0-release-posix-seh-rt_v5-rev0.7z -oc:\mingw > nul |
onqtam | 63447e2 | 2016-08-01 21:42:58 +0300 | [diff] [blame] | 46 | |
onqtam | 529c92c | 2016-08-02 17:51:59 +0300 | [diff] [blame] | 47 | build_script: |
| 48 | # ============= 2008 IS ENABLED ONLY FOR x86 BECAUSE CMAKE CANNOT FIND THE COMPILER FOR Win64 |
| 49 | - IF "%arch%" == "Win32" mkdir 2008 |
| 50 | - IF "%arch%" == "Win32" cd 2008 |
| 51 | - IF "%arch%" == "Win32" set gen=Visual Studio 9 2008%VS_GEN% |
| 52 | - IF "%arch%" == "Win32" cmake .. -G "%gen%" |
| 53 | - IF "%arch%" == "Win32" msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 54 | - IF "%arch%" == "Win32" ctest -C %configuration% --output-on-failure |
| 55 | - IF "%arch%" == "Win32" cd .. |
| 56 | - mkdir 2010 |
| 57 | - cd 2010 |
| 58 | - set gen=Visual Studio 10 2010%VS_GEN% |
| 59 | - cmake .. -G "%gen%" |
| 60 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 61 | - ctest -C %configuration% --output-on-failure |
| 62 | - cd .. |
| 63 | - mkdir 2012 |
| 64 | - cd 2012 |
| 65 | - set gen=Visual Studio 11 2012%VS_GEN% |
| 66 | - cmake .. -G "%gen%" |
| 67 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 68 | - ctest -C %configuration% --output-on-failure |
| 69 | - cd .. |
| 70 | - mkdir 2013 |
| 71 | - cd 2013 |
| 72 | - set gen=Visual Studio 12 2013%VS_GEN% |
| 73 | - cmake .. -G "%gen%" |
| 74 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 75 | - ctest -C %configuration% --output-on-failure |
| 76 | - cd .. |
| 77 | - mkdir 2015 |
| 78 | - cd 2015 |
| 79 | - set gen=Visual Studio 14 2015%VS_GEN% |
| 80 | - cmake .. -G "%gen%" |
| 81 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 82 | - ctest -C %configuration% --output-on-failure |
| 83 | - cd .. |
| 84 | # ============= MINGW - always 64 bit |
| 85 | - mkdir gcc6 |
| 86 | - cd gcc6 |
| 87 | # workaround for CMake not wanting sh.exe on PATH for MinGW |
| 88 | - set PATH=%PATH:C:\Program Files\Git\usr\bin;=% |
| 89 | - set PATH=C:\mingw\mingw64\bin;%PATH% |
| 90 | - cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=%Configuration% |
| 91 | - cmake --build . |
| 92 | # adding git to the path again - for the dos2unix tool |
| 93 | - set PATH=%PATH%;C:\Program Files\Git\usr\bin |
| 94 | - ctest --output-on-failure |
| 95 | - cd .. |