From 9a4dbf366bcfce43e50185f05ed8c3ad85ac8ba1 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 11 Jan 2016 21:18:11 +0100 Subject: [PATCH] travis: use trusty (simpler config, faster builds) --- .travis.yml | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index c6ccf58d..54ef5cae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +sudo: required +dist: trusty language: c compiler: - gcc @@ -5,8 +7,6 @@ compiler: addons: apt: sources: - - llvm-toolchain-precise-3.5 - # ubuntu-toolchain-r-test contains libstdc++6 >= 4.8 which libllvm3.5 needs. - ubuntu-toolchain-r-test packages: - clang-format-3.5 @@ -14,39 +14,11 @@ addons: - clang-3.5 - gcc-5 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 -t trusty libc6 libc6-dev git - - sudo apt-get install --no-install-recommends devscripts equivs xdotool + - sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-suggests --no-install-recommends devscripts equivs xdotool install: - - sudo mk-build-deps --install --remove --tool 'apt-get --no-install-recommends' debian/control + - sudo DEBIAN_FRONTEND=noninteractive mk-build-deps --install --remove --tool 'apt-get -yq --no-install-suggests --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 libxcb-xtest0-dev + - sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-suggests --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 libxcb-xtest0-dev - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true' - sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true' script: