File: .travis.yml

package info (click to toggle)
ncmpc 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,668 kB
  • sloc: cpp: 14,225; python: 175; makefile: 39; sh: 5
file content (61 lines) | stat: -rw-r--r-- 1,532 bytes parent folder | download
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
56
57
58
59
60
61
language: cpp

jobs:
  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
            - libboost-dev
            - libncursesw5-dev
            - libmpdclient-dev
      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
      osx_image: xcode9.4
      addons:
        homebrew:
          packages:
            - ccache
            - meson
            - ninja
            - ncurses
            - libmpdclient
          update: true

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="-Dlyrics_screen=true -Dchat_screen=true"
  - test "$TRAVIS_OS_NAME" != "osx" || export PKG_CONFIG_PATH=/usr/local/opt/ncurses/lib/pkgconfig
  - meson . output $OPTIONS
  - ninja -v -C output
  - ccache -s