]> git.sur5r.net Git - i3/i3lock/blob - .travis.yml
add travis config
[i3/i3lock] / .travis.yml
1 language: c
2 compiler:
3   - gcc
4   - clang
5 before_install:
6   # The travis VMs run on Ubuntu 12.04 which is very old and a huge pain to get
7   # into a state where we can build a recent version of i3status :(.
8   - "echo 'APT::Default-Release \"precise\";' | sudo tee /etc/apt/apt.conf.d/default-release"
9   - "echo 'deb http://archive.ubuntu.com/ubuntu/ utopic main universe' | sudo tee /etc/apt/sources.list.d/utopic.list"
10   - sudo apt-get update
11   - sudo apt-get install -t utopic clang-format-3.5
12   - clang-format-3.5 --version
13 install:
14   # TODO: Once libxkbcommon >= 0.5.0 is in Debian, install it from there.
15   # These are the Build-Depends of libxkbcommon:
16   - 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
17   - (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)
18   - 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
19 script:
20   - make -j
21   - clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)