blob: ecc42c4f291b04f0e8135a71e4626aa97ecb5d57 [file] [log] [blame]
Austin Schuh906616c2019-01-21 20:25:11 -08001# global environment variables
2environment:
3 global:
4 # path to source directory of project to be built
5 PROJECT_DIR: .
6 # output test results for failing tests
7 CTEST_OUTPUT_ON_FAILURE: 1
8
9 # test matrix
10 matrix:
11
12 - TOOLCHAIN: "vs-14-2015-sdk-8-1"
13 GENERATOR: "Visual Studio 14 2015 Win64"
14 TEST_TARGET: RUN_TESTS
15 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
16
17 - TOOLCHAIN: "vs-14-2015-win64"
18 GENERATOR: "Visual Studio 14 2015 Win64"
19 TEST_TARGET: RUN_TESTS
20 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
21
22 - TOOLCHAIN: "vs-15-2017-win64"
23 GENERATOR: "Visual Studio 15 2017 Win64"
24 TEST_TARGET: RUN_TESTS
25 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
26
27 - TOOLCHAIN: "vs-15-2017-win64-cxx17"
28 GENERATOR: "Visual Studio 15 2017 Win64"
29 TEST_TARGET: RUN_TESTS
30 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
31
32 - TOOLCHAIN: "mingw-cxx11"
33 GENERATOR: "MinGW Makefiles"
34 MINGW_PATH: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
35 TEST_TARGET: test
36 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
37
38 - TOOLCHAIN: "mingw-gnuxx11"
39 GENERATOR: "MinGW Makefiles"
40 MINGW_PATH: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
41 TEST_TARGET: test
42 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
43
44 - TOOLCHAIN: "mingw-cxx17"
45 GENERATOR: "MinGW Makefiles"
46 MINGW_PATH: "C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
47 TEST_TARGET: test
48 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
49
50install:
51 # Remove entry with sh.exe from PATH to fix error with MinGW toolchain
52 # (For MinGW make to work correctly sh.exe must NOT be in your path)
53 # * http://stackoverflow.com/a/3870338/2288008
54 - cmd: set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
55
56 # set MINGW path
57 - cmd: IF DEFINED MINGW_PATH set PATH=%MINGW_PATH%;%PATH%
58
59 # Visual Studio 15 2017: Mimic behavior of older versions
60 - cmd: set VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools
61
62build_script:
63 - cmd: cmake -H. -B_build_%TOOLCHAIN%_Debug -G "%GENERATOR%" -DCMAKE_TOOLCHAIN_FILE="%cd%\toolchains\%TOOLCHAIN%.cmake"
64 - cmd: cmake --build _build_%TOOLCHAIN%_Debug --config Debug
65 #- cmd: cmake -H. -B_build_%TOOLCHAIN%_Release -G "%GENERATOR%" -DCMAKE_TOOLCHAIN_FILE="%cd%\toolchains\%TOOLCHAIN%.cmake"
66 #- cmd: cmake --build _build_%TOOLCHAIN%_Release --config Release
67 # add git back to PATH for `diff` command in case of error
68 - cmd: set PATH=C:\Program Files\Git\usr\bin;%PATH%
69 - cmd: IF DEFINED TEST_TARGET cmake --build _build_%TOOLCHAIN%_Debug --target %TEST_TARGET%
70 #- cmd: IF DEFINED TEST_TARGET cmake --build _build_%TOOLCHAIN%_Release --target %TEST_TARGET%
71