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.0/msvc2017_64
69 - name: Windows (VS2017 Win32)
70 # Set a supported language, otherwise the Windows worker will not start.
75 - WIRESHARK_BASE_DIR: C:/wireshark-libs
76 - QT5_BASE_DIR: C:/Qt/5.12.0/msvc2017
82 - echo $TRAVIS_OS_NAME
84 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
85 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install softhsm; fi
87 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional --install-test-deps -q; fi
88 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y python3-pip; fi
90 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cinst -y --no-progress python3 winflexbison strawberryperl; fi
92 if [ "$TRAVIS_OS_NAME" == "windows" ]; then
93 # Ensure Python and the Scripts folder is available in PATH.
94 # refreshenv does not seem to work in bash, so reload it manually.
95 # Entries in the Machine PATH might contain trailing slashes, drop those.
96 # Apply Process paths before Machine to ensure /bin appears before others (otherwise casher will break and stall).
97 export PATH="$(powershell -Command '("Process", "Machine" | % {
98 [Environment]::GetEnvironmentVariable("PATH", $_) -Split ";" -Replace "\\$", ""
99 } | Select -Unique | % { cygpath $_ }) -Join ":"')"
101 # Workaround broken casher implementation that extracts absolute paths to the current working directory
102 # See https://github.com/travis-ci/casher/pull/38
103 for path in wireshark-libs Qt; do if [ -d "$path" ]; then echo "Restoring C:/$path"; mv "$path/"* "C:/$path"; fi; done
104 # Update checksums to avoid invalidating the cache (saves 2-3mins).
105 if [ -d Qt ]; then md5deep64 -o f -r "C:/wireshark-libs" "C:/Qt" | sort > ~/.casher/md5sums_before; fi
106 # Workaround to avoid using perl from git-bash $PATH which lacks modules such as Pod::Usage
107 export CMAKE_PROGRAM_PATH=C:/Strawberry/perl/bin
110 if [ "$TRAVIS_OS_NAME" == "windows" ] && [ ! -e "$QT5_BASE_DIR/bin/moc.exe" ]; then
111 curl -vLo ~/qt-unified-windows-x86-online.exe http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe
112 if ! ~/qt-unified-windows-x86-online.exe --verbose --script tools/qt-installer-windows.qs > ~/qt-installer-output.txt; then
113 cat ~/qt-installer-output.txt; exit 1
115 du -sm "$QT5_BASE_DIR"
118 - pip3 install pytest pytest-xdist
122 - if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake -GNinja -DENABLE_PCAP=${PCAP} ..; fi
123 - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cmake -A $PLATFORM ..; fi
125 # Enable parallelism for msbuild too (since CMake 3.12; ninja does not need it)
126 - export CMAKE_BUILD_PARALLEL_LEVEL=0
127 # Invoke ninja (Linux/macOS, --config is ignored) or msbuild (Windows)
128 - cmake --build . --config RelWithDebInfo
129 - cmake --build . --config RelWithDebInfo --target test-programs
132 - if [ -f run/tshark ]; then run/tshark --version; fi
133 - if [ -f run/RelWithDebInfo/tshark.exe ]; then run/RelWithDebInfo/tshark.exe --version; fi