forked from osmocom/wireshark
![Dario Lombardo](/assets/img/avatar_default.png)
Change-Id: Id5613fd9aa506d62e7a48585d6ea13c3db100068 Reviewed-on: https://code.wireshark.org/review/28650 Reviewed-by: Anders Broman <a.broman58@gmail.com>
44 lines
1,009 B
YAML
44 lines
1,009 B
YAML
language: cpp
|
|
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
|
|
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
|
|
- cd build
|
|
- cmake -GNinja -DENABLE_PCAP=${PCAP} ..
|
|
script:
|
|
- ninja
|
|
- if [ "$PCAP" == "ON" ]; then ninja test-programs && ninja test; fi
|