66sudo : required
77dist : trusty
88
9+ # Build on both Linux and OSX
10+ os :
11+ - linux
12+ - osx
13+
914language : c++
1015
1116# Skip vulcan CI branches
2227 # via the "travis encrypt" command using the project repo's public key
2328 - secure : " R/JfoBMrkhCGWhfWM1m3gPHuLtMBlp2SIK1R9BaPbRsbGBUJmAg9V0g0YXSaw8SVxoyuiL/jsLtHPfDeub9oTxrYydew+6/4KaoQdG7EGXQJfBhH2f0ag/hTKJfXnmZX9jMMnTxPf5Axjq+w4E6sKkU2+d1oAJRhrqzYNwDhVlc="
2429 - CXX_STD : " c++11"
25- - LCS_ENGINE_FLAGS : " -ui"
30+
31+ # Install any required tools
32+ before_install :
33+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then sudo gem install xcpretty ; fi
2634
2735# Set up the source tree by fetching Linux-specific prebuilt objects
28- install : (cd prebuilt && ./fetch-libraries.sh linux)
36+ install :
37+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then (cd prebuilt && ./fetch-libraries.sh linux) ; fi
38+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then (cd prebuilt && ./fetch-libraries.sh mac) ; fi
2939
3040# Bootstrap the LCB compiler, build the default target set and run a
3141# the default test suite.
3242script : >
3343 if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then
34- make all-linux && make check-linux
44+ if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
45+ LICENSE_FILE=livecode-firstrun.lcf
46+ LICENSE_DIR="$HOME/.runrev/licenses"
47+ [ -d "$LICENSE_DIR" ] || mkdir -p "$LICENSE_DIR"
48+ touch "$LICENSE_DIR/$LICENSE_FILE"
49+ make all-linux && xvfb-run make check-linux
50+ fi
51+ if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
52+ LICENSE_FILE=livecode-firstrun.lcf
53+ LICENSE_DIR="$HOME/Library/Application Support/RunRev/Licenses"
54+ [ -d "$LICENSE_DIR" ] || mkdir -p "$LICENSE_DIR"
55+ touch "$LICENSE_DIR/$LICENSE_FILE"
56+ make all-mac && make check-mac
57+ fi
3558 fi
3659
3760addons :
@@ -62,3 +85,4 @@ addons:
6285 - libpopt-dev
6386 - libesd0-dev
6487 - liblcms-dev
88+ - xvfb
0 commit comments