blob: e8c6344825a1dcc797a939cd8041e25e6bf8095e [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 Pesavento9ac95d32017-07-01 01:51:37 -040030
Davide Pesavento56c68a32020-03-12 19:26:21 -040031 # macOS
Davide Pesaventod657d532018-06-26 22:41:28 -040032 - os: osx
33 osx_image: xcode9.4
Davide Pesavento56c68a32020-03-12 19:26:21 -040034 env: # default compiler
Davide Pesavento69692ab2018-09-11 18:11:23 -040035 - os: osx
Davide Pesavento5e1124c2018-11-06 14:40:50 -050036 osx_image: xcode10.1
Davide Pesavento56c68a32020-03-12 19:26:21 -040037 env: # default compiler
Davide Pesavento3626b592019-03-20 01:38:09 -040038 - os: osx
Davide Pesavento4bd4f712019-10-09 01:02:45 -040039 osx_image: xcode10.3
Davide Pesavento56c68a32020-03-12 19:26:21 -040040 env: # default compiler
Davide Pesaventod2148812019-07-17 16:38:10 -040041 - os: osx
Davide Pesavento56c68a32020-03-12 19:26:21 -040042 osx_image: xcode11.3
43 env: # default compiler
Davide Pesavento17521592020-05-14 19:01:32 -040044 - os: osx
Davide Pesaventod82134b2020-07-01 22:40:16 -040045 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 Pesavento17521592020-05-14 19:01:32 -040052 env: # default compiler
Davide Pesavento167040a2018-01-10 02:41:50 -050053
54 allow_failures:
Davide Pesavento17521592020-05-14 19:01:32 -040055 - env: COMPILER=g++-5
56 - env: COMPILER=g++-6
57 - env: COMPILER=clang++-4.0
Davide Pesavento56c68a32020-03-12 19:26:21 -040058 - env: COMPILER=clang++-11
Davide Pesavento167040a2018-01-10 02:41:50 -050059
60 fast_finish: true
Davide Pesavento9ac95d32017-07-01 01:51:37 -040061
Davide Pesavento56c68a32020-03-12 19:26:21 -040062before_install:
63 - |
64 : Adding apt repositories
Davide Pesavento5f35f642018-05-10 19:36:03 -040065 case ${COMPILER} in
Davide Pesavento56c68a32020-03-12 19:26:21 -040066 g++-9)
67 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Davide Pesavento5f35f642018-05-10 19:36:03 -040068 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
69 travis_retry sudo apt-get -qq update
Davide Pesavento5f35f642018-05-10 19:36:03 -040070 ;;
Davide Pesavento56c68a32020-03-12 19:26:21 -040071 clang++-1?)
72 # https://apt.llvm.org/
Davide Pesavento4bd4f712019-10-09 01:02:45 -040073 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 Pesavento56c68a32020-03-12 19:26:21 -040075 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-11} main"
Davide Pesavento5f35f642018-05-10 19:36:03 -040076 travis_retry sudo apt-get -qq update
Davide Pesavento5f35f642018-05-10 19:36:03 -040077 ;;
78 esac
79
Davide Pesavento4bd4f712019-10-09 01:02:45 -040080install:
Davide Pesavento56c68a32020-03-12 19:26:21 -040081 - |
82 : Installing C++ compiler
83 if [[ -n ${COMPILER} ]]; then
84 travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang}
85 fi
Davide Pesavento4bd4f712019-10-09 01:02:45 -040086
Davide Pesavento9ac95d32017-07-01 01:51:37 -040087before_script:
Davide Pesavento56c68a32020-03-12 19:26:21 -040088 - |
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 Pesavento69857c32020-04-05 16:36:26 -0400111 if [[ ${TRAVIS_OS_NAME} == linux ]]; then
Davide Pesavento56c68a32020-03-12 19:26:21 -0400112 sudo sysctl -e -w net.ipv6.conf.all.disable_ipv6=0
113 fi
Davide Pesavento9ac95d32017-07-01 01:51:37 -0400114 - ${CXX:-c++} --version
115
Yi Huang71929b32014-01-29 21:47:09 -0700116script:
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -0700117 - ./.jenkins