blob: e92217054bca7b28fcf6a1db9a9a7be95e85821a [file] [log] [blame]
onqtam529c92c2016-08-02 17:51:59 +03001# http://www.appveyor.com/docs/appveyor-yml
onqtam63447e22016-08-01 21:42:58 +03002
onqtam529c92c2016-08-02 17:51:59 +03003notifications:
4 - provider: Email
onqtamf5169772016-09-09 18:33:13 +03005 on_build_status_changed: false
6 on_build_failure: false
onqtam529c92c2016-08-02 17:51:59 +03007 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
onqtam63447e22016-08-01 21:42:58 +030014
onqtam529c92c2016-08-02 17:51:59 +030015clone_depth: 500
16branches:
17 except:
18 - gh-pages
19 - coverity_scan
onqtam63447e22016-08-01 21:42:58 +030020
onqtam529c92c2016-08-02 17:51:59 +030021matrix:
22 fast_finish: false
onqtam63447e22016-08-01 21:42:58 +030023
onqtam529c92c2016-08-02 17:51:59 +030024environment:
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"
onqtam63447e22016-08-01 21:42:58 +030042
onqtam529c92c2016-08-02 17:51:59 +030043install:
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
onqtam63447e22016-08-01 21:42:58 +030046
onqtam529c92c2016-08-02 17:51:59 +030047build_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 ..