2017-04-27 19:43:05 +02:00
|
|
|
language: cpp
|
|
|
|
|
2020-03-07 09:31:46 +01:00
|
|
|
jobs:
|
2018-02-16 23:21:14 +01:00
|
|
|
include:
|
2019-12-23 17:58:08 +01:00
|
|
|
# Ubuntu Bionic (18.04) with GCC 7
|
|
|
|
- os: linux
|
|
|
|
dist: bionic
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
|
|
|
|
packages:
|
|
|
|
- libgtest-dev
|
|
|
|
- libboost-dev
|
|
|
|
- python3.6
|
|
|
|
- python3-urllib3
|
|
|
|
- ninja-build
|
|
|
|
before_install:
|
|
|
|
- wget https://bootstrap.pypa.io/get-pip.py
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 get-pip.py --user --no-cache-dir
|
2019-12-24 16:42:00 +01:00
|
|
|
install:
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson --no-cache-dir
|
2019-12-24 16:42:00 +01:00
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="export PATH=\$HOME/.local/bin:\$PATH"
|
|
|
|
|
|
|
|
# Ubuntu Bionic (18.04) with GCC 7 on big-endian
|
|
|
|
- os: linux
|
|
|
|
arch: s390x
|
|
|
|
dist: bionic
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
|
|
|
|
packages:
|
|
|
|
- libgtest-dev
|
|
|
|
- libboost-dev
|
|
|
|
- python3.6
|
|
|
|
- python3-urllib3
|
|
|
|
- ninja-build
|
|
|
|
before_install:
|
|
|
|
- wget https://bootstrap.pypa.io/get-pip.py
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 get-pip.py --user --no-cache-dir
|
2020-01-01 18:36:59 +01:00
|
|
|
install:
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson --no-cache-dir
|
2020-01-01 18:36:59 +01:00
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="export PATH=\$HOME/.local/bin:\$PATH"
|
|
|
|
|
|
|
|
# Ubuntu Bionic (18.04) with GCC 7 on ARM64
|
|
|
|
- os: linux
|
|
|
|
arch: arm64
|
|
|
|
dist: bionic
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
|
|
|
|
packages:
|
|
|
|
- libgtest-dev
|
|
|
|
- libboost-dev
|
|
|
|
- python3.6
|
|
|
|
- python3-urllib3
|
|
|
|
- ninja-build
|
|
|
|
before_install:
|
|
|
|
- wget https://bootstrap.pypa.io/get-pip.py
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 get-pip.py --user --no-cache-dir
|
2019-12-23 17:58:08 +01:00
|
|
|
install:
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson --no-cache-dir
|
2019-12-23 17:58:08 +01:00
|
|
|
env:
|
2019-12-24 07:08:54 +01:00
|
|
|
- MATRIX_EVAL="export PATH=\$HOME/.local/bin:\$PATH"
|
2019-12-23 17:58:08 +01:00
|
|
|
|
|
|
|
# Ubuntu Trusty (16.04) with GCC 8
|
2018-07-06 21:31:02 +02:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2018-09-02 17:28:01 +02:00
|
|
|
- sourceline: 'ppa:mhier/libboost-latest'
|
2019-04-16 11:36:17 +02:00
|
|
|
- sourceline: 'ppa:mstipicevic/ninja-build-1-7-2'
|
2017-12-29 17:12:55 +01:00
|
|
|
- sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
|
2018-07-06 21:31:02 +02:00
|
|
|
packages:
|
|
|
|
- g++-8
|
2018-10-16 19:01:13 +02:00
|
|
|
- libgtest-dev
|
2018-09-02 17:28:01 +02:00
|
|
|
- boost1.67
|
2017-12-29 17:12:55 +01:00
|
|
|
- python3.6
|
|
|
|
- python3-urllib3
|
|
|
|
- ninja-build
|
|
|
|
before_install:
|
|
|
|
- wget https://bootstrap.pypa.io/get-pip.py
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 get-pip.py --user --no-cache-dir
|
2017-12-29 17:12:55 +01:00
|
|
|
install:
|
2020-02-03 05:27:13 +01:00
|
|
|
- /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson --no-cache-dir
|
2018-07-06 21:31:02 +02:00
|
|
|
env:
|
2017-12-29 17:12:55 +01:00
|
|
|
# use gold as workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=17068
|
2019-12-24 07:08:54 +01:00
|
|
|
- MATRIX_EVAL="export CC='ccache gcc-8' CXX='ccache g++-8' LDFLAGS=-fuse-ld=gold PATH=\$HOME/.local/bin:\$PATH"
|
2018-07-06 21:31:02 +02:00
|
|
|
|
2018-02-16 23:21:14 +01:00
|
|
|
- os: osx
|
2019-12-23 17:27:40 +01:00
|
|
|
osx_image: xcode9.4
|
2019-12-24 11:18:08 +01:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- ccache
|
|
|
|
- meson
|
2020-04-01 16:36:17 +02:00
|
|
|
- icu4c
|
|
|
|
- ffmpeg
|
|
|
|
- libnfs
|
|
|
|
- yajl
|
|
|
|
- libupnp
|
|
|
|
- libid3tag
|
|
|
|
- chromaprint
|
|
|
|
- libsamplerate
|
|
|
|
- libsoxr
|
|
|
|
- libzzip
|
|
|
|
- flac
|
|
|
|
- opus
|
|
|
|
- libvorbis
|
|
|
|
- faad2
|
|
|
|
- wavpack
|
|
|
|
- libmpdclient
|
2020-03-07 09:29:45 +01:00
|
|
|
update: true
|
2018-02-16 23:39:16 +01:00
|
|
|
env:
|
2019-12-24 08:10:19 +01:00
|
|
|
- MATRIX_EVAL="export PATH=/usr/local/opt/ccache/libexec:$PATH HOMEBREW_NO_ANALYTICS=1"
|
2017-04-27 19:43:05 +02:00
|
|
|
|
2018-02-16 23:48:56 +01:00
|
|
|
cache:
|
2019-12-24 10:17:35 +01:00
|
|
|
apt: true
|
|
|
|
ccache: true
|
2019-12-23 17:32:19 +01:00
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || brew cleanup
|
2018-02-16 23:48:56 +01:00
|
|
|
|
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
|
|
|
|
|
|
|
install:
|
|
|
|
# C++14
|
2019-12-23 17:27:40 +01:00
|
|
|
|
|
|
|
# Work around "Target /usr/local/lib/libgtest.a is a symlink
|
|
|
|
# belonging to nss. You can unlink it" during gtest install
|
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || brew unlink nss
|
|
|
|
|
2020-02-16 20:19:17 +01:00
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || brew install https://gist.githubusercontent.com/Kronuz/96ac10fbd8472eb1e7566d740c4034f8/raw/gtest.rb
|
2018-02-16 23:48:56 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- ccache -s
|
2017-04-27 19:43:05 +02:00
|
|
|
|
|
|
|
script:
|
2017-12-29 17:12:55 +01:00
|
|
|
- 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
|