From b4f61413159e76c266cc811fbf16c244ea85be23 Mon Sep 17 00:00:00 2001 From: Park Hyunwoo Date: Wed, 28 Nov 2018 20:21:14 +0900 Subject: [PATCH] Add multiple os into travis conf --- .travis.yml | 10 +++++++--- build.sh | 10 ++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf0e509..c3bae9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ -script: ./build.sh +os: + - linux + - osx + - windows + +language: cpp -before_install: - - sudo apt-get install cmake +script: ./build.sh diff --git a/build.sh b/build.sh index f91c2e1..7dfbb18 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,11 @@ #!/bin/bash mkdir "_build" cd "_build" -cmake .. -DDEV_MODE=True -make && make test +if [ "$TRAVIS_OS_NAME" == "windows" ]; then + cmake .. -DCMAKE_SH="CMAKE_SH-NOTFOUND" -G "MinGW Makefiles" -DDEV_MODE=True + ls -l + mingw32-make +else + cmake .. -DDEV_MODE=True + make && make test +fi