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