| sudo: false |
| |
| branches: |
| only: |
| - master |
| # Release branches |
| - /^[0-9]+\.[0-9]+$/ |
| |
| os: |
| - linux |
| - osx |
| |
| compiler: |
| - gcc |
| - clang |
| |
| env: |
| - MESON_ARGS="" |
| - RUN_TESTS_ARGS="--no-unittests" MESON_ARGS="--unity=on" |
| |
| language: |
| - cpp |
| |
| services: |
| - docker |
| |
| matrix: |
| exclude: |
| # On OS X gcc is just a wrapper around clang, so don't waste time testing that |
| - os: osx |
| compiler: gcc |
| include: |
| # Test cross builds separately, they do not use the global compiler |
| # Also hijack one cross build to test long commandline handling codepath (and avoid overloading Travis) |
| - os: linux |
| compiler: gcc |
| env: RUN_TESTS_ARGS="--cross ubuntu-armhf.txt --cross linux-mingw-w64-64bit.txt" MESON_RSP_THRESHOLD=0 |
| - os: linux |
| compiler: gcc |
| env: RUN_TESTS_ARGS="--cross ubuntu-armhf.txt --cross linux-mingw-w64-64bit.txt" MESON_ARGS="--unity=on" |
| |
| before_install: |
| - python ./skip_ci.py --base-branch-env=TRAVIS_BRANCH --is-pull-env=TRAVIS_PULL_REQUEST |
| - ./ci/travis_install.sh |
| |
| script: |
| - ./ci/travis_script.sh |