2018-11-03 10:10:02 +00:00
|
|
|
language: minimal
|
2019-11-13 11:22:57 +00:00
|
|
|
dist: bionic
|
2016-07-16 06:34:50 +00:00
|
|
|
matrix:
|
2018-11-03 10:10:02 +00:00
|
|
|
include:
|
2020-12-20 17:45:19 +00:00
|
|
|
- name: OSX (xcode12.2 clang-12.0.0)
|
2018-11-03 10:10:02 +00:00
|
|
|
os: osx
|
2020-12-20 17:45:19 +00:00
|
|
|
osx_image: xcode12.2
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux amd64 (gcc-9)
|
2020-01-10 14:45:54 +00:00
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- sourceline: ppa:ubuntu-toolchain-r/test
|
|
|
|
packages: g++-9
|
|
|
|
env:
|
|
|
|
- CXX=g++-9
|
|
|
|
- CC=gcc-9
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux arm64 (gcc-8)
|
2019-11-05 21:55:49 +00:00
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: g++-8
|
|
|
|
env:
|
|
|
|
- CXX=g++-8
|
|
|
|
- CC=gcc-8
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux s390x (gcc-7)
|
2019-11-13 11:03:44 +00:00
|
|
|
os: linux
|
|
|
|
arch: s390x
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux ppc64le (gcc-7)
|
2019-11-13 11:04:10 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux amd64 (clang)
|
2018-11-03 10:10:02 +00:00
|
|
|
os: linux
|
|
|
|
env:
|
2018-12-13 11:04:20 +00:00
|
|
|
- CXX=clang++
|
|
|
|
- CC=clang
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux arm64 (clang)
|
2019-11-05 21:55:49 +00:00
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
env:
|
|
|
|
- CXX=clang++
|
|
|
|
- CC=clang
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux s390x (clang)
|
2019-11-13 11:03:44 +00:00
|
|
|
os: linux
|
|
|
|
arch: s390x
|
|
|
|
env:
|
|
|
|
- CXX=clang++
|
|
|
|
- CC=clang
|
2020-03-29 20:09:29 +00:00
|
|
|
- name: Linux ppc64le (clang)
|
2019-11-13 11:04:10 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env:
|
|
|
|
- CXX=clang++
|
|
|
|
- CC=clang
|
2020-04-30 22:05:23 +00:00
|
|
|
allow_failures:
|
|
|
|
# Those builds frequently fail due to builds longer than maximum allowed.
|
|
|
|
# Let them fail quietly.
|
|
|
|
arch: ppc64le
|
2014-08-27 19:50:14 +00:00
|
|
|
before_install:
|
2016-07-16 06:34:50 +00:00
|
|
|
- echo $TRAVIS_OS_NAME
|
2016-11-05 23:43:14 +00:00
|
|
|
# macos
|
2016-07-16 06:34:50 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
|
2018-12-12 13:34:00 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install softhsm; fi
|
2019-01-22 18:50:12 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sed s/access_bpf/staff/ packaging/macosx/ChmodBPF/ChmodBPF | sudo bash; fi
|
2016-11-05 23:43:14 +00:00
|
|
|
# linux
|
2018-12-12 13:34:00 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional --install-test-deps -q; fi
|
2018-11-16 02:09:03 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y python3-pip; fi
|
2019-01-07 17:21:33 +00:00
|
|
|
# all platforms
|
|
|
|
- pip3 install pytest pytest-xdist
|
2018-11-16 02:09:03 +00:00
|
|
|
before_script:
|
2018-04-15 21:40:36 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-04-19 15:42:26 +00:00
|
|
|
- cmake -GNinja ..
|
2014-08-27 19:50:14 +00:00
|
|
|
script:
|
2020-05-01 21:38:14 +00:00
|
|
|
- ninja || travis_assert
|
2020-04-19 15:42:26 +00:00
|
|
|
- ninja test-programs
|
2020-03-29 20:09:29 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi
|
2019-01-21 14:05:37 +00:00
|
|
|
- pytest
|
2018-12-14 11:49:32 +00:00
|
|
|
after_script:
|
|
|
|
- if [ -f run/tshark ]; then run/tshark --version; fi
|
2019-01-22 22:15:55 +00:00
|
|
|
- ../test/travis-upload-artifacts.sh
|