mpd/.travis.yml

37 lines
847 B
YAML
Raw Normal View History

2017-04-27 19:43:05 +02:00
dist: trusty
language: cpp
addons:
2017-05-17 15:27:40 +02:00
apt:
packages:
- libcppunit-dev
- libboost-dev
2017-04-27 19:43:05 +02:00
os:
2017-05-17 15:27:40 +02:00
- linux
2017-05-17 16:54:02 +02:00
- osx
2017-04-27 19:43:05 +02:00
2017-05-17 15:36:59 +02:00
env:
global:
- MAKEFLAGS="-j2"
2017-04-27 19:43:05 +02:00
before_install:
# C++14
- test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
2017-05-17 16:54:02 +02:00
- test "$TRAVIS_OS_NAME" != "osx" || brew update
2017-04-27 19:43:05 +02:00
install:
# C++14
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
2017-05-17 16:54:02 +02:00
- test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit
2017-04-27 19:43:05 +02:00
script:
- OPTIONS="--enable-test"
- test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
2017-05-17 16:54:02 +02:00
- test "$TRAVIS_OS_NAME" != "osx" || OPTIONS="$OPTIONS --enable-osx"
2017-05-17 15:27:40 +02:00
- ./autogen.sh
- ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
2017-05-17 15:27:40 +02:00
- make
- make check