update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / .travis.yml
blobfbcfa9c35d5f0cfab1803914e5fa5fc89eac2e54
1 language: minimal
2 dist: bionic
3 matrix:
4   include:
5     - name: OSX (xcode12.2 clang-12.0.0)
6       os: osx
7       osx_image: xcode12.2
8     - name: Linux amd64 (gcc-9)
9       os: linux
10       addons:
11         apt:
12           update: true
13           sources:
14             - ubuntu-toolchain-r-test
15             - sourceline: ppa:ubuntu-toolchain-r/test
16           packages: g++-9
17       env:
18         - CXX=g++-9
19         - CC=gcc-9
20     - name: Linux arm64 (gcc-8)
21       os: linux
22       arch: arm64
23       addons:
24         apt:
25           packages: g++-8
26       env:
27         - CXX=g++-8
28         - CC=gcc-8
29     - name: Linux s390x (gcc-7)
30       os: linux
31       arch: s390x
32     - name: Linux ppc64le (gcc-7)
33       os: linux
34       arch: ppc64le
35     - name: Linux amd64 (clang)
36       os: linux
37       env:
38         - CXX=clang++
39         - CC=clang
40     - name: Linux arm64 (clang)
41       os: linux
42       arch: arm64
43       env:
44         - CXX=clang++
45         - CC=clang
46     - name: Linux s390x (clang)
47       os: linux
48       arch: s390x
49       env:
50         - CXX=clang++
51         - CC=clang
52     - name: Linux ppc64le (clang)
53       os: linux
54       arch: ppc64le
55       env:
56         - CXX=clang++
57         - CC=clang
58   allow_failures:
59     # Those builds frequently fail due to builds longer than maximum allowed.
60     # Let them fail quietly.
61     arch: ppc64le
62 before_install:
63   - echo $TRAVIS_OS_NAME
64   # macos
65   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
66   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install softhsm; fi
67   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then sed s/access_bpf/staff/ packaging/macosx/ChmodBPF/ChmodBPF | sudo bash; fi
68   # linux
69   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional --install-test-deps -q; fi
70   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y python3-pip; fi
71   # all platforms
72   - pip3 install pytest pytest-xdist
73 before_script:
74   - mkdir build
75   - cd build
76   - cmake -GNinja ..
77 script:
78   - ninja || travis_assert
79   - ninja test-programs
80   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi
81   - pytest
82 after_script:
83   - if [ -f run/tshark ]; then run/tshark --version; fi
84   - ../test/travis-upload-artifacts.sh