blob: fceafe47efa55d9f370496aba6f1e26a0cf05d9a [file] [log] [blame]
Davide Pesavento56c68a32020-03-12 19:26:21 -04001version: ~> 1.0
Davide Pesavento167040a2018-01-10 02:41:50 -05002language: cpp
Davide Pesavento56c68a32020-03-12 19:26:21 -04003os: linux
Davide Pesavento4bd4f712019-10-09 01:02:45 -04004dist: bionic
Davide Pesavento56c68a32020-03-12 19:26:21 -04005
6arch:
7 - amd64
8 #- arm64 # Too slow, exceeds time limit
9 #- ppc64le # Fails transport tests
10 #- s390x # Fails transport tests
11
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070012env:
Davide Pesavento56c68a32020-03-12 19:26:21 -040013 - COMPILER=g++-7
14 - COMPILER=g++-9
15 - COMPILER=clang++-6.0
16 - COMPILER=clang++-9
Davide Pesavento9ac95d32017-07-01 01:51:37 -040017
Davide Pesavento56c68a32020-03-12 19:26:21 -040018jobs:
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070019 include:
Davide Pesavento56c68a32020-03-12 19:26:21 -040020 # Linux
Davide Pesavento17521592020-05-14 19:01:32 -040021 - env: COMPILER=g++-5
22 - env: COMPILER=g++-6
Davide Pesavento56c68a32020-03-12 19:26:21 -040023 - env: COMPILER=g++-8
Davide Pesavento17521592020-05-14 19:01:32 -040024 - env: COMPILER=clang++-4.0
Davide Pesavento56c68a32020-03-12 19:26:21 -040025 - 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 Pesaventobc0e6172020-08-07 13:08:25 -040030 - env: COMPILER=clang++-12
Davide Pesavento9ac95d32017-07-01 01:51:37 -040031
Davide Pesavento56c68a32020-03-12 19:26:21 -040032 # macOS
Davide Pesaventod657d532018-06-26 22:41:28 -040033 - os: osx
34 osx_image: xcode9.4
Davide Pesavento56c68a32020-03-12 19:26:21 -040035 env: # default compiler
Davide Pesavento69692ab2018-09-11 18:11:23 -040036 - os: osx
Davide Pesavento5e1124c2018-11-06 14:40:50 -050037 osx_image: xcode10.1
Davide Pesavento56c68a32020-03-12 19:26:21 -040038 env: # default compiler
Davide Pesavento3626b592019-03-20 01:38:09 -040039 - os: osx
Davide Pesavento4bd4f712019-10-09 01:02:45 -040040 osx_image: xcode10.3
Davide Pesavento56c68a32020-03-12 19:26:21 -040041 env: # default compiler
Davide Pesaventod2148812019-07-17 16:38:10 -040042 - os: osx
Davide Pesavento56c68a32020-03-12 19:26:21 -040043 osx_image: xcode11.3
44 env: # default compiler
Davide Pesavento17521592020-05-14 19:01:32 -040045 - os: osx
Davide Pesaventod82134b2020-07-01 22:40:16 -040046 osx_image: xcode11.6
47 env: # default compiler
48 - os: osx
49 osx_image: xcode12
Davide Pesavento17521592020-05-14 19:01:32 -040050 env: # default compiler
Davide Pesavento167040a2018-01-10 02:41:50 -050051
52 allow_failures:
Davide Pesavento17521592020-05-14 19:01:32 -040053 - env: COMPILER=g++-5
54 - env: COMPILER=g++-6
55 - env: COMPILER=clang++-4.0
Davide Pesaventobc0e6172020-08-07 13:08:25 -040056 - env: COMPILER=clang++-12
Davide Pesavento167040a2018-01-10 02:41:50 -050057
58 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -040059
Davide Pesavento56c68a32020-03-12 19:26:21 -040060before_install:
61 - |
62 : Adding apt repositories
Davide Pesavento5f35f642018-05-10 19:36:03 -040063 case ${COMPILER} in
Davide Pesavento56c68a32020-03-12 19:26:21 -040064 g++-9)
65 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Davide Pesavento5f35f642018-05-10 19:36:03 -040066 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
67 travis_retry sudo apt-get -qq update
Davide Pesavento5f35f642018-05-10 19:36:03 -040068 ;;
Davide Pesavento56c68a32020-03-12 19:26:21 -040069 clang++-1?)
70 # https://apt.llvm.org/
Davide Pesavento4bd4f712019-10-09 01:02:45 -040071 LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}}
72 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesaventobc0e6172020-08-07 13:08:25 -040073 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-12} main"
Davide Pesavento5f35f642018-05-10 19:36:03 -040074 travis_retry sudo apt-get -qq update
Davide Pesavento5f35f642018-05-10 19:36:03 -040075 ;;
76 esac
77
Davide Pesavento4bd4f712019-10-09 01:02:45 -040078install:
Davide Pesavento56c68a32020-03-12 19:26:21 -040079 - |
80 : Installing C++ compiler
81 if [[ -n ${COMPILER} ]]; then
82 travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang}
83 fi
Davide Pesavento4bd4f712019-10-09 01:02:45 -040084
Davide Pesavento9ac95d32017-07-01 01:51:37 -040085before_script:
Davide Pesavento56c68a32020-03-12 19:26:21 -040086 - |
87 : Setting environment variables
88 if [[ -n ${COMPILER} ]]; then
89 export CXX=${COMPILER}
90 fi
91 case ${TRAVIS_OS_NAME} in
92 linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;;
93 osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;;
94 esac
95 export JOB_NAME=limited-build
96 export WAF_JOBS=2
97 - |
98 : Enabling workarounds
99 case "${TRAVIS_CPU_ARCH},${COMPILER}" in
100 ppc64le,g++-7)
101 # AddressSanitizer does not seem to be working
102 export DISABLE_ASAN=yes
103 ;;
104 *,clang++-8)
105 # https://bugs.llvm.org/show_bug.cgi?id=40808
106 export DISABLE_ASAN=yes
107 ;;
108 esac
Davide Pesavento69857c32020-04-05 16:36:26 -0400109 if [[ ${TRAVIS_OS_NAME} == linux ]]; then
Davide Pesavento56c68a32020-03-12 19:26:21 -0400110 sudo sysctl -e -w net.ipv6.conf.all.disable_ipv6=0
111 fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400112 - ${CXX:-c++} --version
113
Yi Huang71929b32014-01-29 21:47:09 -0700114script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -0700115 - ./.jenkins