Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 1 | version: ~> 1.0 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 2 | language: cpp |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 3 | os: linux |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 4 | dist: bionic |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 5 | |
| 6 | arch: |
| 7 | - amd64 |
| 8 | #- arm64 # Too slow, exceeds time limit |
| 9 | #- ppc64le # Fails transport tests |
| 10 | #- s390x # Fails transport tests |
| 11 | |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 12 | env: |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 13 | - COMPILER=g++-7 |
| 14 | - COMPILER=g++-9 |
| 15 | - COMPILER=clang++-6.0 |
| 16 | - COMPILER=clang++-9 |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 17 | |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 18 | jobs: |
Alexander Afanasyev | 6602b3b | 2016-03-15 14:14:11 -0700 | [diff] [blame] | 19 | include: |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 20 | # Linux |
Davide Pesavento | 1752159 | 2020-05-14 19:01:32 -0400 | [diff] [blame] | 21 | - env: COMPILER=g++-5 |
| 22 | - env: COMPILER=g++-6 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 23 | - env: COMPILER=g++-8 |
Davide Pesavento | 1752159 | 2020-05-14 19:01:32 -0400 | [diff] [blame] | 24 | - env: COMPILER=clang++-4.0 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -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 | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 30 | |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 31 | # macOS |
Davide Pesavento | d657d53 | 2018-06-26 22:41:28 -0400 | [diff] [blame] | 32 | - os: osx |
| 33 | osx_image: xcode9.4 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 34 | env: # default compiler |
Davide Pesavento | 69692ab | 2018-09-11 18:11:23 -0400 | [diff] [blame] | 35 | - os: osx |
Davide Pesavento | 5e1124c | 2018-11-06 14:40:50 -0500 | [diff] [blame] | 36 | osx_image: xcode10.1 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 37 | env: # default compiler |
Davide Pesavento | 3626b59 | 2019-03-20 01:38:09 -0400 | [diff] [blame] | 38 | - os: osx |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 39 | osx_image: xcode10.3 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 40 | env: # default compiler |
Davide Pesavento | d214881 | 2019-07-17 16:38:10 -0400 | [diff] [blame] | 41 | - os: osx |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 42 | osx_image: xcode11.3 |
| 43 | env: # default compiler |
Davide Pesavento | 1752159 | 2020-05-14 19:01:32 -0400 | [diff] [blame] | 44 | - os: osx |
Davide Pesavento | d82134b | 2020-07-01 22:40:16 -0400 | [diff] [blame^] | 45 | osx_image: xcode11.4 |
| 46 | env: # default compiler |
| 47 | - os: osx |
| 48 | osx_image: xcode11.6 |
| 49 | env: # default compiler |
| 50 | - os: osx |
| 51 | osx_image: xcode12 |
Davide Pesavento | 1752159 | 2020-05-14 19:01:32 -0400 | [diff] [blame] | 52 | env: # default compiler |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 53 | |
| 54 | allow_failures: |
Davide Pesavento | 1752159 | 2020-05-14 19:01:32 -0400 | [diff] [blame] | 55 | - env: COMPILER=g++-5 |
| 56 | - env: COMPILER=g++-6 |
| 57 | - env: COMPILER=clang++-4.0 |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 58 | - env: COMPILER=clang++-11 |
Davide Pesavento | 167040a | 2018-01-10 02:41:50 -0500 | [diff] [blame] | 59 | |
| 60 | fast_finish: true |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 61 | |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 62 | before_install: |
| 63 | - | |
| 64 | : Adding apt repositories |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 65 | case ${COMPILER} in |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 66 | g++-9) |
| 67 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 68 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 69 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 70 | ;; |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 71 | clang++-1?) |
| 72 | # https://apt.llvm.org/ |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 73 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 74 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 75 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-11} main" |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 76 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 5f35f64 | 2018-05-10 19:36:03 -0400 | [diff] [blame] | 77 | ;; |
| 78 | esac |
| 79 | |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 80 | install: |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 81 | - | |
| 82 | : Installing C++ compiler |
| 83 | if [[ -n ${COMPILER} ]]; then |
| 84 | travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang} |
| 85 | fi |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 86 | |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 87 | before_script: |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 88 | - | |
| 89 | : Setting environment variables |
| 90 | if [[ -n ${COMPILER} ]]; then |
| 91 | export CXX=${COMPILER} |
| 92 | fi |
| 93 | case ${TRAVIS_OS_NAME} in |
| 94 | linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;; |
| 95 | osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;; |
| 96 | esac |
| 97 | export JOB_NAME=limited-build |
| 98 | export WAF_JOBS=2 |
| 99 | - | |
| 100 | : Enabling workarounds |
| 101 | case "${TRAVIS_CPU_ARCH},${COMPILER}" in |
| 102 | ppc64le,g++-7) |
| 103 | # AddressSanitizer does not seem to be working |
| 104 | export DISABLE_ASAN=yes |
| 105 | ;; |
| 106 | *,clang++-8) |
| 107 | # https://bugs.llvm.org/show_bug.cgi?id=40808 |
| 108 | export DISABLE_ASAN=yes |
| 109 | ;; |
| 110 | esac |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 111 | if [[ ${TRAVIS_OS_NAME} == linux ]]; then |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 112 | sudo sysctl -e -w net.ipv6.conf.all.disable_ipv6=0 |
| 113 | fi |
Davide Pesavento | 9ac95d3 | 2017-07-01 01:51:37 -0400 | [diff] [blame] | 114 | - ${CXX:-c++} --version |
| 115 | |
Yi Huang | 71929b3 | 2014-01-29 21:47:09 -0700 | [diff] [blame] | 116 | script: |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 117 | - ./.jenkins |