mpd/.travis.yml

51 lines
952 B
YAML
Raw Normal View History

2017-04-27 19:43:05 +02:00
language: cpp
2018-02-16 23:21:14 +01:00
matrix:
include:
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libcppunit-dev
- libboost-dev
2018-02-16 23:39:16 +01:00
env:
- MATRIX_EVAL="export CC=gcc-5 CXX=g++-5"
2017-04-27 19:43:05 +02:00
2018-02-16 23:21:14 +01:00
- os: osx
osx_image: xcode9.3beta
2018-02-16 23:39:16 +01:00
env:
- MATRIX_EVAL=""
2017-04-27 19:43:05 +02:00
2017-05-17 15:36:59 +02:00
env:
global:
- MAKEFLAGS="-j2"
2018-02-16 23:48:56 +01:00
cache:
- apt
- ccache
2017-04-27 19:43:05 +02:00
before_install:
2018-02-16 23:39:16 +01:00
- eval "${MATRIX_EVAL}"
2017-04-27 19:43:05 +02:00
# C++14
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
2018-02-16 23:48:56 +01:00
- test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit ccache
before_script:
- ccache -s
2017-04-27 19:43:05 +02:00
script:
- OPTIONS="--enable-test"
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
2018-02-16 23:48:56 +01:00
- ./configure CC="ccache $CC" CXX="ccache $CXX" --disable-silent-rules --disable-dependency-tracking $OPTIONS
2017-05-17 15:27:40 +02:00
- make
- make check
2018-02-16 23:48:56 +01:00
- ccache -s