]> git.sur5r.net Git - i3/i3status/blob - .travis.yml
Merge pull request #30 from Deiz/update-notices
[i3/i3status] / .travis.yml
1 language: c
2 compiler:
3   - gcc
4   - clang
5 addons:
6   # See http://docs.travis-ci.com/user/apt/
7   apt:
8     sources:
9     - llvm-toolchain-precise-3.5
10     # ubuntu-toolchain-r-test contains libstdc++6 >= 4.8 which libllvm3.5 needs.
11     - ubuntu-toolchain-r-test
12     packages:
13     - libconfuse-dev
14     - libyajl-dev
15     - libasound2-dev
16     - libpulse-dev
17     - libiw-dev
18     - asciidoc
19     # xmlto pulls in a2x which we need for generating manpages from asciidoc.
20     - xmlto
21     - libcap2-bin
22     - clang-format-3.5
23     - libllvm3.5
24 script:
25   - make -j
26   - clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)