Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 1 | version: ~> 1.0 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 2 | language: cpp |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 3 | os: linux |
Davide Pesavento | cbef7b8 | 2019-10-09 00:15:13 -0400 | [diff] [blame] | 4 | dist: bionic |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 5 | |
| 6 | arch: |
| 7 | - amd64 |
| 8 | - arm64 |
| 9 | - ppc64le |
| 10 | - s390x |
| 11 | |
Eric Newberry | 9737aa8 | 2016-12-27 23:03:49 -0700 | [diff] [blame] | 12 | env: |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 13 | - COMPILER=g++-7 |
| 14 | - COMPILER=g++-9 |
| 15 | - COMPILER=clang++-6.0 |
| 16 | - COMPILER=clang++-9 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 17 | |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 18 | jobs: |
Davide Pesavento | 4a1edc6 | 2016-05-03 18:03:19 +0200 | [diff] [blame] | 19 | include: |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 20 | # Linux |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 21 | - env: COMPILER=g++-5 |
| 22 | - env: COMPILER=g++-6 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 23 | - env: COMPILER=g++-8 |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 24 | - env: COMPILER=clang++-4.0 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 25 | - env: COMPILER=clang++-5.0 |
| 26 | - env: COMPILER=clang++-7 |
| 27 | - env: COMPILER=clang++-8 |
| 28 | - env: COMPILER=clang++-10 |
| 29 | - env: COMPILER=clang++-11 |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 30 | |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 31 | # macOS |
Davide Pesavento | 302941e | 2018-07-21 18:55:56 -0400 | [diff] [blame] | 32 | - os: osx |
| 33 | osx_image: xcode9.4 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 34 | env: # default compiler |
Davide Pesavento | 88beb4d | 2018-09-11 18:14:18 -0400 | [diff] [blame] | 35 | - os: osx |
Davide Pesavento | 162bdbb | 2018-11-06 16:00:44 -0500 | [diff] [blame] | 36 | osx_image: xcode10.1 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 37 | env: # default compiler |
Davide Pesavento | c16ec57 | 2019-03-18 18:40:48 -0400 | [diff] [blame] | 38 | - os: osx |
Davide Pesavento | cbef7b8 | 2019-10-09 00:15:13 -0400 | [diff] [blame] | 39 | osx_image: xcode10.3 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 40 | env: # default compiler |
Davide Pesavento | c1eb2fc | 2019-07-17 15:44:33 -0400 | [diff] [blame] | 41 | - os: osx |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 42 | osx_image: xcode11.3 |
| 43 | env: # default compiler |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 44 | - os: osx |
| 45 | osx_image: xcode11.4 |
| 46 | env: # default compiler |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 47 | |
| 48 | allow_failures: |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 49 | - env: COMPILER=g++-5 |
| 50 | - env: COMPILER=g++-6 |
| 51 | - env: COMPILER=clang++-4.0 |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 52 | - env: COMPILER=clang++-11 |
Davide Pesavento | 9a659d0 | 2018-01-10 02:55:43 -0500 | [diff] [blame] | 53 | |
| 54 | fast_finish: true |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 55 | |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 56 | before_install: |
| 57 | - | |
| 58 | : Adding apt repositories |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 59 | case ${COMPILER} in |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 60 | g++-9) |
| 61 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 62 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 63 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 64 | ;; |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 65 | clang++-1?) |
| 66 | # https://apt.llvm.org/ |
Davide Pesavento | cbef7b8 | 2019-10-09 00:15:13 -0400 | [diff] [blame] | 67 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 68 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 69 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-11} main" |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 70 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 26ea1ac | 2018-05-10 20:20:03 -0400 | [diff] [blame] | 71 | ;; |
| 72 | esac |
| 73 | |
Davide Pesavento | cbef7b8 | 2019-10-09 00:15:13 -0400 | [diff] [blame] | 74 | install: |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 75 | - | |
| 76 | : Installing C++ compiler |
| 77 | if [[ -n ${COMPILER} ]]; then |
| 78 | travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang} |
| 79 | fi |
Davide Pesavento | cbef7b8 | 2019-10-09 00:15:13 -0400 | [diff] [blame] | 80 | |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 81 | before_script: |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 82 | - | |
| 83 | : Setting environment variables |
| 84 | if [[ -n ${COMPILER} ]]; then |
| 85 | export CXX=${COMPILER} |
| 86 | fi |
| 87 | case ${TRAVIS_OS_NAME} in |
| 88 | linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;; |
| 89 | osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;; |
| 90 | esac |
| 91 | export WAF_JOBS=2 |
| 92 | - | |
| 93 | : Enabling workarounds |
| 94 | case "${TRAVIS_CPU_ARCH},${COMPILER}" in |
Davide Pesavento | 8a2907e | 2020-04-16 00:02:23 -0400 | [diff] [blame] | 95 | arm64,g++*) |
| 96 | # Avoid exceeding the per-job time limit |
| 97 | export JOB_NAME=limited-build |
| 98 | ;; |
Davide Pesavento | 9fa6a78 | 2020-03-10 19:47:06 -0400 | [diff] [blame] | 99 | ppc64le,g++-7) |
| 100 | # AddressSanitizer does not seem to be working |
| 101 | export DISABLE_ASAN=yes |
| 102 | ;; |
| 103 | *,clang++-8) |
| 104 | # https://bugs.llvm.org/show_bug.cgi?id=40808 |
| 105 | export DISABLE_ASAN=yes |
| 106 | ;; |
| 107 | esac |
Davide Pesavento | f085ed1 | 2017-06-30 14:59:52 -0400 | [diff] [blame] | 108 | - ${CXX:-c++} --version |
| 109 | |
Joao Pereira | ef326da | 2015-05-27 18:27:40 -0400 | [diff] [blame] | 110 | script: |
Joao Pereira | ef326da | 2015-05-27 18:27:40 -0400 | [diff] [blame] | 111 | - ./.jenkins |