]> git.sur5r.net Git - i3/i3/blob - .travis.yml
Merge pull request #1539 from mh21/wsrename-1527
[i3/i3] / .travis.yml
1 language: c
2 compiler:
3   - gcc
4   - clang
5 before_install:
6   # The travis VMs run on Ubuntu 12.04 which is very old and a huge pain to get
7   # into a state where we can build a recent version of i3 :(.
8   - "echo 'deb http://archive.ubuntu.com/ubuntu/ trusty main universe' | sudo tee /etc/apt/sources.list.d/trusty.list"
9   - "echo 'APT::Default-Release \"precise\";' | sudo tee /etc/apt/apt.conf.d/default-release"
10
11   - "echo 'Package: libc6' > /tmp/pin"
12   - "echo 'Pin: release n=trusty' >> /tmp/pin"
13   - "echo 'Pin-Priority: 999' >> /tmp/pin"
14   - "echo '' >> /tmp/pin"
15
16   - "echo 'Package: libxkbcommon*' >> /tmp/pin"
17   - "echo 'Pin: release n=trusty' >> /tmp/pin"
18   - "echo 'Pin-Priority: 999' >> /tmp/pin"
19   - "echo '' >> /tmp/pin"
20
21   - "echo 'Package: libyajl*' >> /tmp/pin"
22   - "echo 'Pin: release n=trusty' >> /tmp/pin"
23   - "echo 'Pin-Priority: 999' >> /tmp/pin"
24   - "echo '' >> /tmp/pin"
25
26   - "echo 'Package: libxcb-image*' >> /tmp/pin"
27   - "echo 'Pin: release n=trusty' >> /tmp/pin"
28   - "echo 'Pin-Priority: 999' >> /tmp/pin"
29   - "echo '' >> /tmp/pin"
30
31   - sudo cp /tmp/pin /etc/apt/preferences.d/trustypin
32   - sudo apt-get update
33   - sudo apt-get install -t trusty libc6 libc6-dev
34   - sudo apt-get install --no-install-recommends devscripts equivs
35 install:
36   - sudo mk-build-deps --install --remove --tool 'apt-get --no-install-recommends' debian/control
37   # Install as many dependencies as possible via apt because cpanm is not very reliable/easy to debug.
38   - sudo apt-get install --no-install-recommends libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl-modules libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libtest-use-ok-perl libipc-run-perl
39   - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true'
40   - sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true'
41 script: make -j && (cd testcases && xvfb-run ./complete-run.pl --parallel=1)
42 after_failure: cat testcases/latest/complete-run.log