67385b184c
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>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
os:
|
|
- osx
|
|
- linux
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
env:
|
|
- BUILD_CMAKE=yes
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DENABLE_PCAP=OFF"
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DENABLE_EXTCAP=OFF"
|
|
- BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
|
|
matrix:
|
|
exclude:
|
|
# Exclude gcc build (Need some work) with osx
|
|
- os: osx
|
|
compiler: gcc
|
|
# Exclude autotools build (missing libtool...) with osx
|
|
- os: osx
|
|
env: BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
|
|
# Exclude build with GTK+3
|
|
- os: osx
|
|
env: BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
|
|
before_install:
|
|
- echo $TRAVIS_OS_NAME
|
|
- $CC --version
|
|
# macos
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
|
|
# linux
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
# libstdc++-4.8 is needed by Clang to build
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq install libstdc++-4.8-dev; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; fi
|
|
- $CC --version
|
|
before_script:
|
|
if [ ${BUILD_CMAKE} == "yes" ]; then mkdir build && cd build && cmake ${CMAKE_OPTS} ..; else ./autogen.sh && ./configure ${AUTOTOOLS_OPTS} ; fi
|
|
script:
|
|
- make
|