diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-11-03 11:10:02 +0100 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2018-11-05 18:12:41 +0000 |
commit | b310a25dba922265b801e9ad56f98b0eb7bd92bf (patch) | |
tree | 35ac4e6548f5fc3a291916f228e2b8f24698c671 /.travis.yml | |
parent | 2b971c0267fce9ee2809939d74ac186690daeca4 (diff) |
travis: fully restyle the matrix.
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>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 98 |
1 files changed, 72 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml index 3b4f79153f..b24fc6b249 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,38 +1,84 @@ -language: cpp +language: minimal sudo: required dist: trusty -os: - - osx - - linux -compiler: - - clang - - gcc -env: - - PCAP=ON - - PCAP=OFF matrix: - exclude: - # Exclude gcc build (Need some work) with osx - - os: osx - compiler: gcc -addons: - apt: - update: true - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-trusty-5.0 - - sourceline: 'ppa:wireshark-dev/stable' - packages: - - g++-8 - - clang-5.0 + include: + - name: OSX (clang-9) with PCAP + os: osx + compiler: clang + env: PCAP=ON + - name: OSX (clang-9) without PCAP + os: osx + compiler: clang + env: PCAP=OFF + - name: OSX (xcode10.1 clang-10) with PCAP + os: osx + osx_image: xcode10.1 + env: PCAP=ON + - name: OSX (xcode10.1 clang-10) without PCAP + os: osx + osx_image: xcode10.1 + env: PCAP=OFF + - name: Linux (gcc-8) with PCAP + os: linux + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + - sourceline: 'ppa:wireshark-dev/stable' + packages: g++-8 + env: + - CXX=g++-8 + - CC=gcc-8 + - PCAP=ON + - name: Linux (gcc-8) without PCAP + os: linux + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + - sourceline: 'ppa:wireshark-dev/stable' + packages: g++-8 + env: + - CXX=g++-8 + - CC=gcc-8 + - PCAP=OFF + - name: Linux (clang-7) with PCAP + os: linux + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + - sourceline: 'ppa:wireshark-dev/stable' + packages: clang-7 + env: + - CXX=clang++-7 + - CC=clang-7 + - PCAP=ON + - name: Linux (clang-7) without PCAP + os: linux + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + - sourceline: 'ppa:wireshark-dev/stable' + packages: clang-7 + env: + - CXX=clang++-7 + - CC=clang-7 + - PCAP=OFF before_install: - echo $TRAVIS_OS_NAME # macos - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi # linux - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CXX" == "g++" ]; then export CXX="g++-8" CC="gcc-8"; fi ; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; fi - - $CC --version before_script: - sudo gem install asciidoctor --no-ri --no-rdoc - mkdir build |