]> git.sur5r.net Git - i3/i3lock/blob - .travis.yml
makefile: s/README/README.md/
[i3/i3lock] / .travis.yml
1 language: c
2 compiler:
3   - gcc
4 # TODO: re-enable clang once libxkbcommon >= 0.5.0 can be installed from packages. Compiling libxkbcommon with clang fails in the libtool step.
5 #  - clang
6 before_install:
7   # The travis VMs run on Ubuntu 12.04 which is very old and a huge pain to get
8   # into a state where we can build a recent version of i3status :(.
9   - "echo 'APT::Default-Release \"precise\";' | sudo tee /etc/apt/apt.conf.d/default-release"
10   - "echo 'deb http://archive.ubuntu.com/ubuntu/ utopic main universe' | sudo tee /etc/apt/sources.list.d/utopic.list"
11   - sudo apt-get update
12   - sudo apt-get install -t utopic clang-format-3.5
13   - clang-format-3.5 --version
14 install:
15   # TODO: Once libxkbcommon >= 0.5.0 is in Debian, install it from there.
16   # These are the Build-Depends of libxkbcommon:
17   - sudo apt-get install pkg-config xutils-dev bison flex libx11-dev libxcb-xkb-dev x11-xkb-utils x11proto-core-dev x11proto-kb-dev xkb-data xvfb
18   - (cd /tmp && wget -nv https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-0.5.0.tar.gz && tar xf xkbcommon-0.5.0.tar.gz && cd libxkbcommon-xkbcommon-0.5.0; ./autogen.sh && ./configure && make && sudo make install)
19   - sudo apt-get install pkg-config libpam0g-dev libcairo2-dev libxcb1-dev libxcb-dpms0-dev libxcb-image0-dev libxcb-util0-dev libev-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbfile-dev
20 script:
21   - make -j
22   - clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)