diff options
author | Marcus Geelnard <marcus.geelnard@smarteye.se> | 2019-05-08 16:32:49 +0200 |
---|---|---|
committer | m <m@bitsnbites.eu> | 2019-08-09 11:49:02 +0200 |
commit | bbbafc5324aa0986c486756f260853fc8e8faf93 (patch) | |
tree | 26f04129e515667c0605676dffa8514f91d9798e | |
parent | 687997c410bc81ecd46d9ac23abbcfc7053c449a (diff) |
Travis: Add a Windows MSVC 2017 compilation test
-rw-r--r-- | .travis.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 037b502..4a29823 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,3 +73,19 @@ matrix: - mkdir build && cd build - 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 - ninja -v + + # Windows MSVC 2017 + - os: windows + compiler: msvc + env: + - MATRIX_EVAL="CC=cl.exe && CXX=cl.exe" + before_install: + - eval "${MATRIX_EVAL}" + install: + - choco install ninja + script: + - mkdir build && cd build + - cmd.exe /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 && + cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release && + ninja -v' + - ctest -V |