onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 1 | # http://www.appveyor.com/docs/appveyor-yml |
| 2 | |
| 3 | notifications: |
| 4 | - provider: Email |
| 5 | to: |
| 6 | - vik.kirilov@gmail.com |
| 7 | on_build_status_changed: true |
| 8 | on_build_failure: true |
| 9 | on_build_success: false |
| 10 | # gitter |
| 11 | - provider: Webhook |
| 12 | url: https://webhooks.gitter.im/e/3a78202a235c0325e516 |
| 13 | on_build_status_changed: true |
| 14 | on_build_failure: true |
| 15 | on_build_success: false |
| 16 | |
| 17 | clone_depth: 5 |
| 18 | branches: |
| 19 | except: |
| 20 | - gh-pages |
| 21 | - coverity_scan |
| 22 | |
| 23 | matrix: |
| 24 | fast_finish: false |
| 25 | |
| 26 | environment: |
| 27 | matrix: |
| 28 | - platform: x86 |
| 29 | configuration: Debug |
| 30 | arch: "Win32" |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 31 | VS_GEN: "" |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 32 | - platform: x86 |
| 33 | configuration: Release |
| 34 | arch: "Win32" |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 35 | VS_GEN: "" |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 36 | - platform: x64 |
| 37 | configuration: Debug |
| 38 | arch: "x64" |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 39 | VS_GEN: " Win64" |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 40 | - platform: x64 |
| 41 | configuration: Release |
| 42 | arch: "x64" |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 43 | VS_GEN: " Win64" |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 44 | |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 45 | build_script: |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 46 | # 2008 IS ENABLED ONLY FOR x86 BECAUSE CMAKE CANNOT FIND THE COMPILER FOR Win64 |
| 47 | - IF "%arch%" == "Win32" mkdir 2008 |
| 48 | - IF "%arch%" == "Win32" cd 2008 |
| 49 | - IF "%arch%" == "Win32" set gen=Visual Studio 9 2008%VS_GEN% |
| 50 | - IF "%arch%" == "Win32" cmake .. -G "%gen%" |
| 51 | - IF "%arch%" == "Win32" msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 52 | - IF "%arch%" == "Win32" ctest -C %configuration% --output-on-failure |
| 53 | - IF "%arch%" == "Win32" cd .. |
| 54 | - mkdir 2010 |
| 55 | - cd 2010 |
| 56 | - set gen=Visual Studio 10 2010%VS_GEN% |
| 57 | - cmake .. -G "%gen%" |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 58 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 59 | - ctest -C %configuration% --output-on-failure |
onqtam | 8805b49 | 2016-05-26 15:32:20 +0300 | [diff] [blame] | 60 | - cd .. |
| 61 | - mkdir 2012 |
| 62 | - cd 2012 |
| 63 | - set gen=Visual Studio 11 2012%VS_GEN% |
| 64 | - cmake .. -G "%gen%" |
| 65 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 66 | - ctest -C %configuration% --output-on-failure |
| 67 | - cd .. |
| 68 | - mkdir 2013 |
| 69 | - cd 2013 |
| 70 | - set gen=Visual Studio 12 2013%VS_GEN% |
| 71 | - cmake .. -G "%gen%" |
| 72 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 73 | - ctest -C %configuration% --output-on-failure |
| 74 | - cd .. |
| 75 | - mkdir 2015 |
| 76 | - cd 2015 |
| 77 | - set gen=Visual Studio 14 2015%VS_GEN% |
| 78 | - cmake .. -G "%gen%" |
| 79 | - msbuild all.sln /p:Configuration=%Configuration%;Platform=%arch% /maxcpucount |
| 80 | - ctest -C %configuration% --output-on-failure |
| 81 | - cd .. |