aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
AgeCommit message (Collapse)AuthorFilesLines
2019-04-19travis: update to Qt 5.12.3 to fix Windows buildsPeter Wu1-2/+2
The Qt installer always seems to install the latest version while the version was assumed to be fixed. This configuration will likely break again with the next Qt update, but it fixes the current Windows builds. Change-Id: Icf4a8fdf10c15e6f6a6eb0451ff30662da613567 Reviewed-on: https://code.wireshark.org/review/32893 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-03-31travis: fix missing msbuild output on WindowsPeter Wu1-3/+3
For some reason the CMake output to Python is missing, no matter how hard I try. Use an alternative approach instead where Python executes CMake and filters the output without relying on pipes in Bash. Change-Id: I21b8b709c3a944fbd3b07e7fac59702735dd83a4 Reviewed-on: https://code.wireshark.org/review/32628 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-03-24travis: Allow Windows builds to failPeter Wu1-0/+3
Travis CI builds for Windows are still experimental with no sign of improvement for caching, pre-installed packages and other issues. Allow it to fail such that Linux/macOS builds determine the build result. Change-Id: I146e829bd89ab4f0e7bc9e1f1b89803c2294b75d Reviewed-on: https://code.wireshark.org/review/32566 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-02-15travis: fold msbuild output to remain below the 10k line limitPeter Wu1-2/+3
Fold messages by overwriting the same line via a carriage return), similar to Ninja. The full log will still contain all messages. Change-Id: I89cc7d10147ebd21f22d40c8d2c4481b1dd2ab56 Reviewed-on: https://code.wireshark.org/review/32024 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-02-15travis: improve cache handling on WindowsPeter Wu1-9/+7
The Travis casher Bash implementation for Windows has bugs. The workarounds only slow down the build further. Given the lack of feedback on the casher bugs from Travis CI, let's try to improve it. Hopefully this will avoid stalls during the cache step. The "cd .." and "cd build" hack is required due to an annoying bug: https://travis-ci.community/t/caching-is-broken-after-directory-changes/2279 Change-Id: Iae62aa7e9ef78815d240b91199acfe21549c1af7 Reviewed-on: https://code.wireshark.org/review/32023 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-02-15travis: avoid aborting the build on slow Qt installationsPeter Wu1-8/+1
Periodically report the installation status to avoid aborting the installation on slow Qt installations (possibly due to slow network?). Change-Id: I6b8b8db49f2268d557a5ca2e7b1f08b6ea801fd9 Reviewed-on: https://code.wireshark.org/review/32022 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24travis: enable capture tests on Linux and macOSPeter Wu1-0/+2
Windows is excluded because installing Npcap is potentially difficult. On macOS use ChmodBPF to create more than 4 bpf devices. This fixes timeout issues in the case_wireshark_capture test due to an error dialog about permissions. Change-Id: I4cfd9618df96a3d6ae4bb2ce0229e9c2c3cccaed Reviewed-on: https://code.wireshark.org/review/31683 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24test,travis: dump a screenshot for hanging GUI testsPeter Wu1-0/+1
For some reason the wireshark GUI tests hang on the Travis OS X builds, but I could not reproduce it locally. It turns out than an error dialog was present, but I could not know that without the screenshot. Change-Id: Idf897d33b4fddf3c19c69ebcea60b629f1ca9368 Reviewed-on: https://code.wireshark.org/review/31682 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-21test: fail tests when programs are missingPeter Wu1-1/+2
Building only a subset of programs is not a very common situation, it is more likely that some feature was accidentally disabled. For that reason, fail tests by default unless a program is explicitly permitted to be missing. The '-v' test is now dropped from the Travis tests, the sole reason of adding it was to see which tests got (accidentally) skipped. Change-Id: I725f4508541d8ed980e17d69fb7aee1ad2875d73 Reviewed-on: https://code.wireshark.org/review/31660 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-12travis: initial Windows support with non-interactive Qt installerPeter Wu1-3/+60
The current preview release of Windows support on Travis lacks many packages (like Qt and Python 3) and is very much tied to git-bash (unlike AppVeyor which has a more native Windows experience). Several workarounds were necessary, such as reimplementing refreshenv, setting CMAKE_PROGRAM_PATH) and setting a supported language. See also https://travis-ci.community/t/feedback-from-windows-integration-for-a-cmake-qt-c-python-perl-project/1706 I wrote the Qt installer script originally for Qt 5.6, ported it to Qt 5.9.5 and finally updated it for 5.12, some comments could be outdated. Duration as measured for one x64 build: - 3m00s - restore cache (Qt and wireshark-libs) - 2m22s - choco install - 0m8s - pip install - 2m20s - cmake - 18m5s - build all - 0m20s - build test-programs - 5m34s - pytest -v - 2m46s - store cache (Qt and wireshark-libs) - (total duration about 36m) - (installing Qt 5.12.0 from scratch would add 7m) Cache size for extracted x64 build: wireshark-libs is 187M, Qt 604M. (179M and 516M for 32-bit respectively.) Change-Id: I9881ab6439e9ca99efad16a6c861862ab9d35252 Reviewed-on: https://code.wireshark.org/review/31454 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-08travis: do not run pip as rootPeter Wu1-1/+2
Both Ubuntu and macOS seems happy without it, removing sudo allows it to be executed on Windows as well. Change-Id: I9daece79d3bc5c97078ba27834de42228f7c3dc9 Reviewed-on: https://code.wireshark.org/review/31434 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05travis: remove asciidoctorPeter Wu1-1/+0
It is already installed in debian-setup.sh. brew setup does not install it, but as no documentation is built it should not matter. Change-Id: I0cfa343d1c837ebba3b020a6586fb4dd0ae57f9b Reviewed-on: https://code.wireshark.org/review/31387 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05travis: remove obsolete sudo keyPeter Wu1-1/+0
Container-based builds have been removed, sudo is always available now: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration Change-Id: Id7cbcf0e406f4c7199f5fd7a3848023e78249a92 Reviewed-on: https://code.wireshark.org/review/31386 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05test: enable parallelism by default for pytestPeter Wu1-1/+1
Consistent with tools like "ninja", enable parallelism by default. It can be disabled again with `pytest -n0`. This makes pytest-xdist a dependency when pytest is used as test runner. This does not affect the unittest-based test runnet (test/test.py). Change-Id: I4dc905f097c57a869aa39487b15361502b431616 Reviewed-on: https://code.wireshark.org/review/31371 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05test: allow running pytest without specifying the tests directoryPeter Wu1-1/+1
This allows `pytest` to be executed from the top-level source or build directory (or any other directory below). Change-Id: Ib7af2ea2aaf01319d6839d2dc67228fbb5a7bc34 Reviewed-on: https://code.wireshark.org/review/31370 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-12-29Add support for RSA decryption using PKCS #11 tokensPeter Wu1-1/+2
Add support for loading RSA private key files from PKCS #11 tokens, identified by PKCS #11 URIs. Add a new 'pkcs11_libs' UAT which can dynamically load PKCS #11 provider libraries that are not found by p11-kit. The configuration GUI will need additional code to discover available PKCS #11 tokens and will be added later. This feature requires GnuTLS 3.4 with PKCS #11 support, so Windows, macOS via Homebrew, Ubuntu 16.04, Debian Stretch. Not supported: RHEL7. Currently macOS via official packages disables PKCS #11 support, so that will also not work. Change-Id: I20646bfd69c6bd13c8c2d27cb65c164a4b0b7a66 Reviewed-on: https://code.wireshark.org/review/30855 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-12-19test: enable extra test summary by defaultPeter Wu1-1/+1
This reports the reason why tests are skipped (for example, if a certain binary was not built). Change-Id: I19095f43f69228116d71b52380814a61894754af Reviewed-on: https://code.wireshark.org/review/31131 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-12-14travis,appveyor: display tshark --version outputPeter Wu1-0/+2
This reveals the actual build configuration. Change-Id: Ie49cea4a07faaa1b942ff6a973b03893f36ca16f Reviewed-on: https://code.wireshark.org/review/31043 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-12-14travis: upgrade to XenialPeter Wu1-25/+7
Travis now supports Ubuntu 16.04 (Xenial): https://blog.travis-ci.com/2018-11-08-xenial-release Simplify the environment: - Clang 7 is default, https://docs.travis-ci.com/user/languages/c/ (ubuntu-toolchain-r-test is still needed because GCC 5.4 is default) - libnghttp2-dev, libssh-gcrypt-dev and libmaxminddb-dev are available. (No longer requires ppa:wireshark-dev/stable) Upgrading to Xenial will also enable Libgcrypt 1.6 tests and includes GnuTLS 3.4.10 which will be useful for future PKCS #11 tests. Gitlab's rpm-centos-7 still covers Libgcrypt 1.5.3 and GnuTLS 3.3.29. Coverage will be lost for GnuTLS 3.2.11 (Ubuntu 14.04, Trusty). Change-Id: Ic28bf23707c75b2c97bedad66206e9c1f129164c Reviewed-on: https://code.wireshark.org/review/31039 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-30travis: increase verbosity with apt loggingPeter Wu1-1/+1
Show the packages that are about to be installed. Change-Id: Ifef21ae852075c5eb672bc0ca7b360f5b438283a Reviewed-on: https://code.wireshark.org/review/30841 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-11-16travis: enable tests even if libpcap is disabledPeter Wu1-2/+5
Proper dependency tracking has been implemented such that tests that require dumpcap are skipped when unavailable, let's enable tests again. Use pytest for nicer traces. Bug: 14949 Change-Id: I1751bed8bd62e1a69d6e19161f7517735ae96662 Reviewed-on: https://code.wireshark.org/review/30669 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-11-05travis: fully restyle the matrix.Dario Lombardo1-26/+72
It includes the following builds: - osx default pcap on/off - osx xcode 10.1 pcap on/off - linux gcc-8 pcap on/off - linux clang-7 pcap on/off Doc: https://docs.travis-ci.com/user/languages/cpp/ Change-Id: I21e20f3678d35d19756cb1ce1a7b97624f18c3e3 Reviewed-on: https://code.wireshark.org/review/30493 Tested-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-11-04travis: use ctest directly (allows parallel execution).Dario Lombardo1-1/+1
Change-Id: I74b2eb852ab2bac6b5151916c8f5fa52f7f7de49 Reviewed-on: https://code.wireshark.org/review/30506 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-11-03travis: fix indentation.Dario Lombardo1-3/+3
Change-Id: I5c69218d590d210d61b18c4dc6b7322b9a9ee2b1 Reviewed-on: https://code.wireshark.org/review/30489 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-07-06travis: fix typo.Dario Lombardo1-1/+1
Change-Id: Id5613fd9aa506d62e7a48585d6ea13c3db100068 Reviewed-on: https://code.wireshark.org/review/28650 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-20travis: remove unnecessary qt5 in PATH for macOSPeter Wu1-1/+0
Since v2.5.0rc0-1101-ged15895221 ("cmake: look for Qt5 from Homebrew on macOS"), qt5 no longer needs to be in the PATH. Change-Id: I1edadcb0eec8a38c4f7364353e57f92c80ca400f Reviewed-on: https://code.wireshark.org/review/28352 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-06-05travis: fix gem command line.Dario Lombardo1-1/+1
Change-Id: I84bc07edad1453b2e41311f21eb37454898a8fd5 Reviewed-on: https://code.wireshark.org/review/28018 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-06-04travis: don't install asciidoctor's documentation.Dario Lombardo1-2/+2
Change-Id: I8d70cb7e940dc527c13e60195f4fd049cdff2481 Reviewed-on: https://code.wireshark.org/review/27954 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-05-18travis: add regression tests to pcap builds.Dario Lombardo1-3/+4
Change-Id: Ibdd3f5bfc7ed0e6a75c83227d50d6e00dccf6814 Reviewed-on: https://code.wireshark.org/review/27619 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-05-18travis: add wireshark/stable ppa.Dario Lombardo1-0/+1
This is required for missing trusty packages (as nghttp2). Change-Id: Ibff9f89c3a89c7e4593650384f97a23f05f899f3 Reviewed-on: https://code.wireshark.org/review/27576 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-05-16travis: remove duplicate line.Dario Lombardo1-1/+0
Change-Id: I39c3aa14b9d4b7dbe78a1be697aa67bf4609dbc5 Reviewed-on: https://code.wireshark.org/review/27578 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-05-16travis: enable apt update.Dario Lombardo1-0/+1
Change-Id: I102b669238dcbf3b8fce8b7429da08f471a20811 Reviewed-on: https://code.wireshark.org/review/27575 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-05-05travis: update to gcc-8 and clang-5Alexis La Goutte1-4/+9
Change-Id: I538f87253241ce3b399bf638514df73447622219 Reviewed-on: https://code.wireshark.org/review/27337 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-05-04travis: use ninja for building.Dario Lombardo1-2/+2
Change-Id: I18cf4c79e6073955d8224c7a37f906ec54a8edbc Reviewed-on: https://code.wireshark.org/review/27324 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-04-18Remove autotools build system.Dario Lombardo1-11/+5
It has been replaced by cmake. Change-Id: I83a5eddb8645dbbf6bca9f026066d2e995d8e87a Reviewed-on: https://code.wireshark.org/review/26969 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-14travis: add asciidoctor.Dario Lombardo1-1/+2
Change-Id: I82e72bf194c37001190868257fb7bef499e38ede Reviewed-on: https://code.wireshark.org/review/25789 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-01-08extcap: remove conditional compilation.Dario Lombardo1-1/+0
Change-Id: Ia54bba388755cf27a343fe6d69d244bf1ab897f9 Reviewed-on: https://code.wireshark.org/review/25186 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-07-05travis: fix build with osx (macOS)Alexis La Goutte1-0/+1
Like say on -dev mailing https://www.wireshark.org/lists/wireshark-dev/201706/msg00113.html and also recommanded when install Qt via homebrew (brew install qt) [...] If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile Fix following cmake error : - Found python module asn2wrs: /Users/travis/build/alagoutte/wireshark/tools/asn2wrs.py CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message): The imported target "Qt5::Core" references the file "/usr/local/.//mkspecs/macx-clang" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references. Change-Id: I47137109c6ddb30de653e424d9baef4a340faad3 Reviewed-on: https://code.wireshark.org/review/22512 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-11-14travis: improve test matrix.Dario Lombardo1-17/+13
Details: - remove the original broken environments and create multi-variable ones - remove old comments - exclude some OSX builds Change-Id: Iec98d13350444678823fa52bb3b9faefe02859d6 Reviewed-on: https://code.wireshark.org/review/18689 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-11-05travis: remove matrix steps from osxDario Lombardo1-0/+4
Change-Id: I172854246fea1858a622178177ca1524f7b4946f Reviewed-on: https://code.wireshark.org/review/18671 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-11-05travis: move osx first.Dario Lombardo1-1/+1
Change-Id: I08f65a6b5bcc78c4a74ed9f1488bca07cc6a1fd5 Reviewed-on: https://code.wireshark.org/review/18670 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-10-19Disable GTK+ by default.Gerald Combs1-1/+3
I suggested disabling GTK+ by default at Sharkfest EU and no one objected, hence this patch. Disable it by default in both Autotools and CMake. Make sure it's enabled for Debian packaging. The RPM packaging enables GTK3 explicitly so no change appears to be necessary there. Change-Id: If5daeaef4bb26cf60006bc8883be15b2cf6c6ae4 Reviewed-on: https://code.wireshark.org/review/18256 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2016-07-17Add osx/macos build for Travis CIAlexis La Goutte1-4/+20
Change-Id: Id6beedfbe909ac3639790cbb7471bd968bed5b82 Reviewed-on: https://code.wireshark.org/review/16496 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-07-16Use debian tools script for travisAlexis La Goutte1-3/+4
Change-Id: I0e3390048fe2723579cc108f5adf582f570a41e5 Reviewed-on: https://code.wireshark.org/review/16494 Reviewed-by: Dario Lombardo <lomato@gmail.com>
2015-10-27Update Travis to TrustyAlexis La Goutte1-4/+7
It is now possible to have Trusty Ubuntu image when using Travis (Github) http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/ Move to Trusty (and GTK3/Qt5) Change-Id: I54cbd4936dd9d8fbd8fe9fb1538290045ec0d5af Reviewed-on: https://code.wireshark.org/review/11115 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-09-20Add .travis.yml for Travis CI (for Github user...)Alexis La Goutte1-0/+20
4 jobs * autotools / gcc * autotools / clang * cmake / gcc * cmake / clang Change-Id: Ifc5b079415232b77680c87b2dee441566e08c835 Reviewed-on: https://code.wireshark.org/review/3944 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>