wireshark/.travis.yml
Alexis La Goutte 6e44ea3f98 Add osx/macos build for Travis CI
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-17 13:43:49 +00:00

41 lines
1.2 KiB
YAML

language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- clang
- gcc
env:
- BUILD_CMAKE=no
- BUILD_CMAKE=yes
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
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
# - sudo apt-get -qq build-dep wireshark
# - sudo apt-get -qq install cmake libgtk-3-0 libglib2.0-0 libgdk-pixbuf2.0-0 libcairo2
# - sudo apt-get -qq install qt5-default qttools5-dev qttools5-dev-tools
- $CC --version
before_script:
if [ ${BUILD_CMAKE} == "yes" ]; then mkdir build && cd build && cmake ..; else ./autogen.sh && ./configure ; fi
script:
- make