language: minimal
sudo: required
-dist: trusty
+dist: xenial
matrix:
include:
- name: OSX (clang-9) with PCAP
update: true
sources:
- ubuntu-toolchain-r-test
- - sourceline: 'ppa:wireshark-dev/stable'
packages: g++-8
env:
- CXX=g++-8
update: true
sources:
- ubuntu-toolchain-r-test
- - sourceline: 'ppa:wireshark-dev/stable'
packages: g++-8
env:
- CXX=g++-8
- CC=gcc-8
- PCAP=OFF
- - name: Linux (clang-7) with PCAP
+ - name: Linux (clang) with PCAP
os: linux
- addons:
- apt:
- update: true
- sources:
- - ubuntu-toolchain-r-test
- - llvm-toolchain-trusty-7
- - sourceline: 'ppa:wireshark-dev/stable'
- packages: clang-7
env:
- - CXX=clang++-7
- - CC=clang-7
+ - CXX=clang++
+ - CC=clang
- PCAP=ON
- - name: Linux (clang-7) without PCAP
+ - name: Linux (clang) without PCAP
os: linux
- addons:
- apt:
- update: true
- sources:
- - ubuntu-toolchain-r-test
- - llvm-toolchain-trusty-7
- - sourceline: 'ppa:wireshark-dev/stable'
- packages: clang-7
env:
- - CXX=clang++-7
- - CC=clang-7
+ - CXX=clang++
+ - CC=clang
- PCAP=OFF
before_install:
- echo $TRAVIS_OS_NAME
# macos
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
+ - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install softhsm; fi
# linux
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; fi
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional --install-test-deps -q; fi
- sudo gem install asciidoctor --no-ri --no-rdoc
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y python3-pip; fi
- sudo pip3 install pytest pytest-xdist
script:
- ninja
- ninja test-programs
- - pytest -nauto -ra -v ../test
+ - pytest -nauto -v ../test
+after_script:
+ - if [ -f run/tshark ]; then run/tshark --version; fi