diff --git a/.travis.yml b/.travis.yml index 69b0d20f96..f18516268e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,30 @@ language: cpp compiler: - clang -os: - - linux - - osx sudo: false cache: ccache matrix: include: - os: linux env: LINTER_ONLY=true + script: + - make lint + - os: linux + install: + - ./configure + - make -j2 V= + script: + - make -j2 test-ci + - os: osx + install: + - ./configure + - make -j2 V= + script: + - make -j2 test-ci before_install: - export HOMEBREW_NO_AUTO_UPDATE=1 # work around https://github.com/travis-ci/travis-ci/issues/7456 - if [ $TRAVIS_OS_NAME = osx ]; then brew install ccache; fi - export PATH="/usr/local/opt/ccache/libexec:$PATH" - export CXX="ccache clang++ -Qunused-arguments" - export CC="ccache clang -Qunused-arguments" - - export JOBS=2 -install: - - ./configure - - make -j2 V= -script: - - tools/run-ci.sh # do linter env variable detection + - export JOBS=2n