Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 1 | language: cpp |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 2 | dist: bionic |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 3 | env: |
| 4 | global: |
| 5 | - JOB_NAME=limited-build |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 6 | - WAF_JOBS=2 |
| 7 | |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 8 | matrix: |
| 9 | include: |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 10 | # Linux/gcc |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 11 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 12 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 13 | env: COMPILER=g++-5 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 14 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 15 | env: COMPILER=g++-6 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 16 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 17 | env: COMPILER=g++-7 |
Davide Pesavento | 67f797f | 2018-04-28 14:51:27 -0400 | [diff] [blame] | 18 | - os: linux |
| 19 | env: COMPILER=g++-8 |
Davide Pesavento | 9d49102 | 2019-06-23 19:15:05 -0400 | [diff] [blame] | 20 | - os: linux |
| 21 | env: COMPILER=g++-9 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 22 | |
| 23 | # Linux/clang |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 24 | # https://apt.llvm.org/ |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 25 | - os: linux |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 26 | env: COMPILER=clang++-3.9 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 27 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 28 | env: COMPILER=clang++-4.0 |
Davide Pesavento | 085b9e3 | 2017-09-14 23:56:18 -0400 | [diff] [blame] | 29 | - os: linux |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 30 | env: COMPILER=clang++-5.0 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 31 | - os: linux |
| 32 | env: COMPILER=clang++-6.0 |
Davide Pesavento | d214881 | 2019-07-17 16:38:10 -0400 | [diff] [blame] | 33 | # disable AddressSanitizer with clang 7 and 8 |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 34 | # due to https://bugs.llvm.org/show_bug.cgi?id=40808 |
Davide Pesavento | 068a71d | 2018-03-15 00:52:34 -0400 | [diff] [blame] | 35 | - os: linux |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 36 | env: COMPILER=clang++-7 DISABLE_ASAN=yes |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 37 | - os: linux |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 38 | env: COMPILER=clang++-8 DISABLE_ASAN=yes |
| 39 | - os: linux |
Davide Pesavento | d214881 | 2019-07-17 16:38:10 -0400 | [diff] [blame] | 40 | env: COMPILER=clang++-9 |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 41 | - os: linux |
| 42 | env: COMPILER=clang++-10 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 43 | |
| 44 | # macOS/clang |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 45 | # https://docs.travis-ci.com/user/reference/osx/#macos-version |
Davide Pesavento | d657d53 | 2018-06-26 22:41:28 -0400 | [diff] [blame] | 46 | - os: osx |
Davide Pesavento | d657d53 | 2018-06-26 22:41:28 -0400 | [diff] [blame] | 47 | osx_image: xcode9.2 |
| 48 | env: OSX_VERSION=10.12 |
| 49 | - os: osx |
| 50 | osx_image: xcode9.4 |
Davide Pesavento | 068a71d | 2018-03-15 00:52:34 -0400 | [diff] [blame] | 51 | env: OSX_VERSION=10.13 |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 52 | - os: osx |
Davide Pesavento | 5e1124c | 2018-11-06 14:40:50 -0500 | [diff] [blame] | 53 | osx_image: xcode10.1 |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 54 | env: OSX_VERSION=10.13 |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 55 | - os: osx |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 56 | osx_image: xcode10.3 |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 57 | env: OSX_VERSION=10.14 |
Davide Pesavento | d214881 | 2019-07-17 16:38:10 -0400 | [diff] [blame] | 58 | - os: osx |
| 59 | osx_image: xcode11 |
| 60 | env: OSX_VERSION=10.14 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 61 | |
| 62 | allow_failures: |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 63 | - env: COMPILER=clang++-10 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 64 | |
| 65 | fast_finish: true |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 66 | |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 67 | before_install: | |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 68 | case ${COMPILER} in |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 69 | g++-[567]|clang++-[3456].*) |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 70 | ;; |
| 71 | g++-*) |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 72 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 73 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 74 | ;; |
| 75 | clang++-*) |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 76 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 77 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
| 78 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-10} main" |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 79 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 83 | install: |
| 84 | - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi |
| 85 | |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 86 | before_script: |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 87 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.04"; fi |
| 88 | - if [[ ${TRAVIS_OS_NAME} == linux ]]; then sudo sysctl -e -w net.ipv6.conf.all.disable_ipv6=0; fi |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 89 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame^] | 90 | # do not waste time upgrading useless packages |
| 91 | - if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew pin cgal gdal numpy postgis sfcgal || true; fi |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 92 | - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi |
Davide Pesavento | 5e1124c | 2018-11-06 14:40:50 -0500 | [diff] [blame] | 93 | # workaround for https://github.com/Homebrew/homebrew-core/issues/26358 |
| 94 | - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi |
| 95 | # workaround for https://github.com/travis-ci/travis-ci/issues/6688 |
| 96 | - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 97 | - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 98 | - ${CXX:-c++} --version |
Davide Pesavento | 8ca138d | 2017-08-10 21:36:30 -0400 | [diff] [blame] | 99 | - python --version |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 100 | |
Yi Huang | 71929b3 | 2014-01-29 21:47:09 -0700 | [diff] [blame] | 101 | script: |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 102 | - ./.jenkins |