From b234a51ef7cdd347584aa232bcf51908f55b6342 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Tue, 8 Jan 2019 21:05:19 -0500 Subject: [PATCH] MacOS build test --- .travis.yml | 8 +++++++- travis-ci/{build.sh => build_linux.sh} | 0 travis-ci/build_macos.sh | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) rename travis-ci/{build.sh => build_linux.sh} (100%) create mode 100644 travis-ci/build_macos.sh diff --git a/.travis.yml b/.travis.yml index ea5bfed..b2626b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +os: + - linux + - osx dist: trusty language: cpp addons: @@ -7,7 +10,10 @@ addons: - libgtk-3-dev - freeglut3 - freeglut3-dev -script: bash travis-ci/build.sh +script: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash travis-ci/build_macos.sh; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash travis-ci/build_linux.sh; fi cache: directories: - /home/travis/build/wxWidgets/staticlib + - /Users/travis/build/wxWidgets/staticlib diff --git a/travis-ci/build.sh b/travis-ci/build_linux.sh similarity index 100% rename from travis-ci/build.sh rename to travis-ci/build_linux.sh diff --git a/travis-ci/build_macos.sh b/travis-ci/build_macos.sh new file mode 100644 index 0000000..7fae990 --- /dev/null +++ b/travis-ci/build_macos.sh @@ -0,0 +1 @@ +echo "Hello from OSX O_o"