aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-11-06 09:10:49 -0800
committerGitHub <noreply@github.com>2016-11-06 09:10:49 -0800
commitae8a0a1438dab3929fe21422163372925ca706b3 (patch)
treeeb52f53082d06e541db080c93e4b8658f827a11f
parent1cf787f28182861790518eebeb550bf59b3f29cd (diff)
parent0af99419869cf5874bad6eb4291db44d8b11b695 (diff)
downloadmeson-ae8a0a1438dab3929fe21422163372925ca706b3.zip
meson-ae8a0a1438dab3929fe21422163372925ca706b3.tar.gz
meson-ae8a0a1438dab3929fe21422163372925ca706b3.tar.bz2
Merge pull request #994 from centricular/more-travis-builds
travis.yml: Run tests against both gcc and clang
-rw-r--r--.travis.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index cf3a5a6..bc52ffa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,17 @@
-sudo: required
+sudo: false
os:
- linux
- osx
+compiler:
+ - gcc
+ - clang
+
+env:
+ - MESON_ARGS=""
+ - MESON_ARGS="--unity"
+
language:
- cpp
@@ -22,5 +30,5 @@ script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo FROM jpakkane/mesonci:yakkety > Dockerfile; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo ADD . /root >> Dockerfile; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t withgit .; fi
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && TRAVIS=true ./run_tests.py"; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) ./run_tests.py --backend=ninja ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && TRAVIS=true ./run_tests.py -- $MESON_ARGS"; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) ./run_tests.py --backend=ninja -- $MESON_ARGS ; fi