-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
92 lines (92 loc) · 2.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: minimal
sudo: required
dist: trusty
matrix:
include:
- name: OSX (clang-9) with PCAP
os: osx
compiler: clang
env: PCAP=ON
- name: OSX (clang-9) without PCAP
os: osx
compiler: clang
env: PCAP=OFF
- name: OSX (xcode10.1 clang-10) with PCAP
os: osx
osx_image: xcode10.1
env: PCAP=ON
- name: OSX (xcode10.1 clang-10) without PCAP
os: osx
osx_image: xcode10.1
env: PCAP=OFF
- name: Linux (gcc-8) with PCAP
os: linux
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:wireshark-dev/stable'
packages: g++-8
env:
- CXX=g++-8
- CC=gcc-8
- PCAP=ON
- name: Linux (gcc-8) without PCAP
os: linux
addons:
apt:
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
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
- PCAP=ON
- name: Linux (clang-7) 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
- PCAP=OFF
before_install:
- echo $TRAVIS_OS_NAME
# macos
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
# linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; 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
before_script:
- mkdir build
- cd build
- cmake -GNinja -DENABLE_PCAP=${PCAP} ..
script:
- ninja
- ninja test-programs
- pytest -nauto -ra -v ../test