Skip to content

Commit bbbafc5

Browse files
marcus-geelnardmbitsnbites
authored andcommitted
Travis: Add a Windows MSVC 2017 compilation test
1 parent 687997c commit bbbafc5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,19 @@ matrix:
7373
- mkdir build && cd build
7474
- CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=on
7575
- ninja -v
76+
77+
# Windows MSVC 2017
78+
- os: windows
79+
compiler: msvc
80+
env:
81+
- MATRIX_EVAL="CC=cl.exe && CXX=cl.exe"
82+
before_install:
83+
- eval "${MATRIX_EVAL}"
84+
install:
85+
- choco install ninja
86+
script:
87+
- mkdir build && cd build
88+
- cmd.exe /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 &&
89+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release &&
90+
ninja -v'
91+
- ctest -V

0 commit comments

Comments
 (0)