mpd/.travis.yml

82 lines
2.3 KiB
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
- sourceline: 'ppa:mhier/libboost-latest'
- sourceline: 'ppa:saiarcot895/chromium-dev' # for ninja-build
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
2018-02-16 23:21:14 +01:00
packages:
- g++-6
2018-02-16 23:21:14 +01:00
- libcppunit-dev
- boost1.67
- python3.6
- python3-urllib3
- ninja-build
before_install:
- wget https://bootstrap.pypa.io/get-pip.py
- /usr/bin/python3.6 get-pip.py --user
install:
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson
2018-02-16 23:39:16 +01:00
env:
# use gold as workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=17068
- MATRIX_EVAL="export CC=gcc-6 CXX=g++-6 LDFLAGS=-fuse-ld=gold PATH=$HOME/.local/bin:$PATH"
2017-04-27 19:43:05 +02:00
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:mhier/libboost-latest'
- sourceline: 'ppa:saiarcot895/chromium-dev' # for ninja-build
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
packages:
- g++-8
- libcppunit-dev
- boost1.67
- python3.6
- python3-urllib3
- ninja-build
before_install:
- wget https://bootstrap.pypa.io/get-pip.py
- /usr/bin/python3.6 get-pip.py --user
install:
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson
env:
# use gold as workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=17068
- MATRIX_EVAL="export CC=gcc-8 CXX=g++-8 LDFLAGS=-fuse-ld=gold PATH=$HOME/.local/bin:$PATH"
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
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
- test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit ccache meson
2018-02-16 23:48:56 +01:00
before_script:
- ccache -s
2017-04-27 19:43:05 +02:00
script:
- eval "${MATRIX_EVAL}"
- OPTIONS="-Dtest=true"
- meson . output --werror $OPTIONS
- ninja -C output -v test
2018-02-16 23:48:56 +01:00
- ccache -s