forked from MusicPlayerDaemon/libmpdclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (47 loc) · 1.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: c
matrix:
include:
# 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:
- python3.6
- python3-urllib3
- ninja-build
- check
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
- os: osx
addons:
homebrew:
packages:
- ccache
- meson
- ninja
- check
cache:
apt: true
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
before_cache:
- test "$TRAVIS_OS_NAME" != "osx" || brew cleanup
before_install:
- test "$TRAVIS_OS_NAME" != "linux" || export PATH="$HOME/.local/bin:$PATH"
- test "$TRAVIS_OS_NAME" != "osx" || export PATH="/usr/local/opt/ccache/libexec:$PATH"
- test "$TRAVIS_OS_NAME" != "osx" || export HOMEBREW_NO_ANALYTICS=1
install:
before_script:
- ccache -s
script:
- OPTIONS="-Dtest=true"
- meson . output $OPTIONS
- ninja -v -C output test
- ccache -s