5 - name: OSX (clang-9) with PCAP
9 - name: OSX (clang-9) without PCAP
13 - name: OSX (xcode10.1 clang-10) with PCAP
17 - name: OSX (xcode10.1 clang-10) without PCAP
21 - name: Linux (gcc-8) with PCAP
27 - ubuntu-toolchain-r-test
33 - name: Linux (gcc-8) without PCAP
39 - ubuntu-toolchain-r-test
45 - name: Linux (clang) with PCAP
51 - name: Linux (clang) without PCAP
57 - name: Windows (VS2017 x64)
58 # Set a supported language, otherwise the Windows worker will not start.
63 - WIRESHARK_BASE_DIR: C:/wireshark-libs
64 - QT5_BASE_DIR: C:/Qt/5.12.3/msvc2017_64
68 - name: Windows (VS2017 Win32)
69 # Set a supported language, otherwise the Windows worker will not start.
74 - WIRESHARK_BASE_DIR: C:/wireshark-libs
75 - QT5_BASE_DIR: C:/Qt/5.12.3/msvc2017
79 # Windows builds are experimental in Travis and are unreliable, do not force it.
83 - echo $TRAVIS_OS_NAME
85 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
86 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install softhsm; fi
87 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then sed s/access_bpf/staff/ packaging/macosx/ChmodBPF/ChmodBPF | sudo bash; fi
89 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional --install-test-deps -q; fi
90 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y python3-pip; fi
92 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then tools/travis-cache-windows.sh restore; fi
93 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cinst -y --no-progress python3 winflexbison strawberryperl; fi
95 if [ "$TRAVIS_OS_NAME" == "windows" ]; then
96 # Ensure Python and the Scripts folder is available in PATH.
97 # refreshenv does not seem to work in bash, so reload it manually.
98 # Entries in the Machine PATH might contain trailing slashes, drop those.
99 # Apply Process paths before Machine to ensure /bin appears before others (otherwise casher will break and stall).
100 export PATH="$(powershell -Command '("Process", "Machine" | % {
101 [Environment]::GetEnvironmentVariable("PATH", $_) -Split ";" -Replace "\\$", ""
102 } | Select -Unique | % { cygpath $_ }) -Join ":"')"
104 # Workaround to avoid using perl from git-bash $PATH which lacks modules such as Pod::Usage
105 export CMAKE_PROGRAM_PATH=C:/Strawberry/perl/bin
107 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then tools/travis-install-qt-windows.sh; fi
109 - pip3 install pytest pytest-xdist
113 - if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake -GNinja -DENABLE_PCAP=${PCAP} ..; fi
114 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cmake -A $PLATFORM ..; fi
116 # Enable parallelism for msbuild too (since CMake 3.12; ninja does not need it)
117 - export CMAKE_BUILD_PARALLEL_LEVEL=0
118 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cmake() { ../tools/filter-msbuild.py cmake "$@"; }; fi
119 # Invoke ninja (Linux/macOS, --config is ignored) or msbuild (Windows)
120 - cmake --build . --config RelWithDebInfo
121 - cmake --build . --config RelWithDebInfo --target test-programs
122 - if [ "$PCAP" = "OFF" ]; then export PYTEST_ADDOPTS=--skip-missing-programs=dumpcap,rawshark; fi
123 - if [ "$TRAVIS_OS_NAME" == "linux" -a "$PCAP" = "ON" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi
127 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then tools/travis-cache-windows.sh save; fi
130 - if [ -f run/tshark ]; then run/tshark --version; fi
131 - if [ -f run/RelWithDebInfo/tshark.exe ]; then run/RelWithDebInfo/tshark.exe --version; fi
132 - ../test/travis-upload-artifacts.sh