summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 9366e75d7fda8e70da1ed9c075aa0a90abc79a00 (plain)
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
sudo: required
dist: trusty
language: c
addons:
    apt:
        packages:
            - autoconf
            - automake
            - make
            - libx11-dev
            - libpango1.0-dev
            - libcairo2-dev
            - libstartup-notification0-dev
            - libxcb-icccm4-dev
            - libxcb-util0-dev
            - libxcb-xinerama0-dev
            - libxcb-xkb-dev
            - libxcb1-dev
            - xvfb
            - discount
            - xdotool
            - fluxbox

compiler:
    - gcc

before_install:
    - sudo add-apt-repository -y 'deb http://debian.jpleau.ca/ jessie-backports main contrib non-free'
    - sudo apt-get update -qq

# TODO: We install xkbcommon here, until Travis use an up-to-date enough Ubuntu
# TODO: We install libxcb-ewmh-dev here, until it is whitelisted again in Travis
install:
    - sudo apt-get install -y --force-yes libxkbcommon-dev libxkbcommon-x11-dev libxcb-ewmh-dev

before_script:
    - autoreconf -i
    - ./configure --enable-gcov

script:
    - make
    - make check
# to re-enable if xdotool is allowed.
    - make test-x
    - make test-x1
    - gcov source/rofi.c
    - make distcheck

after_success:
      - bash <(curl -s https://codecov.io/bash)