2015-03-13 10:06:57 +01:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
before_install:
|
2015-03-13 20:52:53 +01:00
|
|
|
# The travis VMs run on Ubuntu 12.04 which is very old and a huge pain to get
|
|
|
|
# into a state where we can build a recent version of i3 :(.
|
2015-03-13 21:04:03 +01:00
|
|
|
- "echo 'deb http://archive.ubuntu.com/ubuntu/ trusty main universe' | sudo tee /etc/apt/sources.list.d/trusty.list"
|
|
|
|
- "echo 'APT::Default-Release \"precise\";' | sudo tee /etc/apt/apt.conf.d/default-release"
|
2015-03-13 23:38:13 +01:00
|
|
|
|
|
|
|
- "echo 'Package: libc6' > /tmp/pin"
|
|
|
|
- "echo 'Pin: release n=trusty' >> /tmp/pin"
|
|
|
|
- "echo 'Pin-Priority: 999' >> /tmp/pin"
|
|
|
|
- "echo '' >> /tmp/pin"
|
|
|
|
|
|
|
|
- "echo 'Package: libxkbcommon*' >> /tmp/pin"
|
|
|
|
- "echo 'Pin: release n=trusty' >> /tmp/pin"
|
|
|
|
- "echo 'Pin-Priority: 999' >> /tmp/pin"
|
|
|
|
- "echo '' >> /tmp/pin"
|
|
|
|
|
|
|
|
- "echo 'Package: libyajl*' >> /tmp/pin"
|
|
|
|
- "echo 'Pin: release n=trusty' >> /tmp/pin"
|
|
|
|
- "echo 'Pin-Priority: 999' >> /tmp/pin"
|
|
|
|
- "echo '' >> /tmp/pin"
|
|
|
|
|
|
|
|
- "echo 'Package: libxcb-image*' >> /tmp/pin"
|
|
|
|
- "echo 'Pin: release n=trusty' >> /tmp/pin"
|
|
|
|
- "echo 'Pin-Priority: 999' >> /tmp/pin"
|
|
|
|
- "echo '' >> /tmp/pin"
|
|
|
|
|
|
|
|
- sudo cp /tmp/pin /etc/apt/preferences.d/trustypin
|
2015-03-13 10:06:57 +01:00
|
|
|
- sudo apt-get update
|
2015-03-13 20:52:53 +01:00
|
|
|
- sudo apt-get install -t trusty libc6 libc6-dev
|
|
|
|
- sudo apt-get install --no-install-recommends devscripts equivs
|
2015-03-13 10:06:57 +01:00
|
|
|
install:
|
2015-03-13 20:52:53 +01:00
|
|
|
- sudo mk-build-deps --install --remove --tool 'apt-get --no-install-recommends' debian/control
|
|
|
|
# Install as many dependencies as possible via apt because cpanm is not very reliable/easy to debug.
|
2015-03-13 23:38:33 +01:00
|
|
|
- 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
|
2015-03-13 20:52:53 +01:00
|
|
|
- sudo /bin/sh -c 'cpanm -n -v X11::XCB || true'
|
2015-03-13 23:38:56 +01:00
|
|
|
- sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true'
|
|
|
|
script: make -j && (cd testcases && xvfb-run ./complete-run.pl --parallel=1)
|
2015-03-13 13:24:02 +01:00
|
|
|
after_failure: cat /home/travis/.cpanm/build.log
|