X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=.travis.yml;h=c21790440f4a8a6e3e6ceed56993c1359b052d8f;hb=56f420c3ddc12e9c4bf8c8cca324a8d2da0fb475;hp=1ce410a1ff8ee0b7a52fec0def2787fd434c6ef0;hpb=b370c5ac7132ffd974ff30c36fc80d007fdcbf6d;p=i3%2Fi3 diff --git a/.travis.yml b/.travis.yml index 1ce410a1..c2179044 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,40 @@ compiler: - gcc - clang before_install: + # 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 :(. + - "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" + + - "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 - sudo apt-get update - - sudo apt-get install -y devscripts equivs + - sudo apt-get install -t trusty libc6 libc6-dev + - sudo apt-get install --no-install-recommends devscripts equivs install: - - sudo mk-build-deps --install --remove --tool 'apt-get --no-install-recommends -y' debian/control - - sudo apt-get install --no-install-recommends -y libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl - - sudo cpanm X11::XCB; sudo cpanm -n X11::XCB -script: make -j && (cd testcases && xvfb-run ./complete-run.pl) + - 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. + - 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 + - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true' + - sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true' +script: make -j && (cd testcases && xvfb-run ./complete-run.pl --parallel=1) +after_failure: cat testcases/latest/complete-run.log