diff options
author | Marcus Geelnard <marcus.geelnard@smarteye.se> | 2019-05-08 16:25:12 +0200 |
---|---|---|
committer | m <m@bitsnbites.eu> | 2019-08-09 11:49:02 +0200 |
commit | 687997c410bc81ecd46d9ac23abbcfc7053c449a (patch) | |
tree | 7cc24b52d512afcf4479740d27480a6d1682c008 | |
parent | 173f16ab55766ad8792d0c077829efdba188e560 (diff) |
Travis: Add a MinGW cross compilation test
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 51171c0..037b502 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,3 +56,20 @@ script: - cmake .. ${EXTRA_CMAKE_OPTS} - make VERBOSE=1 - ctest -V + +matrix: + include: + # Windows MinGW cross compile on Linux + - os: linux + dist: xenial + compiler: mingw + addons: + apt: + packages: + - ninja-build + - gcc-mingw-w64-x86-64 + - g++-mingw-w64-x86-64 + script: + - 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 |