Updated changelog
[ncmpc-debian.git] / .travis.yml
1 language: cpp
2
3 jobs:
4   include:
5     # Ubuntu Bionic (18.04) with GCC 7
6     - os: linux
7       dist: bionic
8       addons:
9         apt:
10           sources:
11             - sourceline: 'ppa:deadsnakes/ppa' # for Python 3.7 (required by Meson)
12           packages:
13             - python3.6
14             - python3-urllib3
15             - ninja-build
16             - libboost-dev
17             - libncursesw5-dev
18             - libmpdclient-dev
19       before_install:
20         - wget https://bootstrap.pypa.io/get-pip.py
21         - /usr/bin/python3.6 get-pip.py --user
22       install:
23         - /usr/bin/python3.6 $HOME/.local/bin/pip install --user meson
24
25     - os: osx
26       osx_image: xcode9.4
27       addons:
28         homebrew:
29           packages:
30             - ccache
31             - meson
32             - ninja
33             - ncurses
34             - libmpdclient
35           update: true
36
37 cache:
38   apt: true
39   ccache: true
40   directories:
41     - $HOME/Library/Caches/Homebrew
42
43 before_cache:
44   - test "$TRAVIS_OS_NAME" != "osx" || brew cleanup
45
46 before_install:
47   - test "$TRAVIS_OS_NAME" != "linux" || export PATH="$HOME/.local/bin:$PATH"
48   - test "$TRAVIS_OS_NAME" != "osx" || export PATH="/usr/local/opt/ccache/libexec:$PATH"
49   - test "$TRAVIS_OS_NAME" != "osx" || export HOMEBREW_NO_ANALYTICS=1
50
51 install:
52
53 before_script:
54   - ccache -s
55
56 script:
57   - OPTIONS="-Dlyrics_screen=true -Dchat_screen=true"
58   - test "$TRAVIS_OS_NAME" != "osx" || export PKG_CONFIG_PATH=/usr/local/opt/ncurses/lib/pkgconfig
59   - meson . output $OPTIONS
60   - ninja -v -C output
61   - ccache -s