aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 8d331560b605f9f7987bcd8c1f317ea5d2089084 (plain) (blame)
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

language: c

matrix:
  include:
    - os: linux
      compiler: gcc
      dist: trusty
      sudo: false
    - os: osx
      compiler: clang

addons:
  apt:
    packages:
      - autopoint
      - intltool
      # DRM
      - libdrm-dev
      # RANDR
      - libxcb1-dev
      - libxcb-randr0-dev
      # VidMode
      - libx11-dev
      - libxxf86vm-dev
      # GeoClue2
      - libglib2.0-dev
      # GUI
      - python3

install: |
  if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    brew install gettext
    brew link --force gettext
    brew install intltool
    brew install python3
  fi

script:
  - ./bootstrap
  - |
    if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      ./configure --enable-drm --enable-vidmode --enable-randr --enable-geoclue2 --enable-gui
    elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
      ./configure --enable-corelocation --enable-quartz --enable-gui
    fi
  - make -j2 distcheck