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