]> git.sur5r.net Git - i3/i3status/blob - .travis.yml
Merge pull request #336 from gokcehan/patch-1
[i3/i3status] / .travis.yml
1 sudo: required
2 dist: trusty
3 language: c
4 compiler:
5   - gcc
6   - clang
7 addons:
8   # See http://docs.travis-ci.com/user/apt/
9   apt:
10     packages:
11     - libconfuse-dev
12     - libyajl-dev
13     - libasound2-dev
14     - libpulse-dev
15     - libnl-genl-3-dev
16     - asciidoc
17     # xmlto pulls in a2x which we need for generating manpages from asciidoc.
18     - xmlto
19     - libcap2-bin
20     - clang-format-3.8
21     - libllvm3.5
22 script:
23   - clang-format-3.8 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
24   # TODO: re-enable sanitizers once issues are fixed
25   - autoreconf -fi && mkdir -p build && cd build && (../configure --disable-sanitizers || (cat config.log; false)) && make -j V=1
26   - make -j check V=1 || (cat test-suite.log; false)