X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=.travis.yml;h=733daeac39117ae0f04587d31ddf8f4e3522588b;hb=b338e25317e51598228ac69b6d817149ce345f15;hp=fc01df70be5a4631475b05ae1ab5a9734ffd9409;hpb=f8ac5fcfe2677922ac484bc9ab200564f9dcf6fc;p=i3%2Fi3 diff --git a/.travis.yml b/.travis.yml index fc01df70..733daeac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,17 +7,41 @@ before_install: # 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 -e \"Package: libc6\nPin: release n=trusty\nPin-Priority: 999\" | sudo tee /etc/apt/preferences.d/00-libc6" - - "echo -e \"Package: libxkbcommon*\nPin: release n=trusty\nPin-Priority: 999\" | sudo tee /etc/apt/preferences.d/01-xkbcommon" - - "echo -e \"Package: libyajl*\nPin: release n=trusty\nPin-Priority: 999\" | sudo tee /etc/apt/preferences.d/02-yajl" - - "echo -e \"Package: libxcb-image*\nPin: release n=trusty\nPin-Priority: 999\" | sudo tee /etc/apt/preferences.d/03-xcb-image" + - "echo 'deb http://archive.ubuntu.com/ubuntu/ utopic main universe' | sudo tee /etc/apt/sources.list.d/utopic.list" + + - "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 - sudo apt-get install --no-install-recommends devscripts equivs + - sudo apt-get install -t utopic clang-format-3.5 + - clang-format-3.5 --version install: - 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 + - 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' -script: make -j && (cd testcases && xvfb-run ./complete-run.pl) -after_failure: cat /home/travis/.cpanm/build.log + - sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true' +script: + - CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror" make -j + - (cd testcases && xvfb-run ./complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)) + - clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)