You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
684 B

10 years ago
10 years ago
  1. # Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
  2. sudo: false
  3. dist: trusty
  4. services:
  5. - docker
  6. language: c
  7. compiler:
  8. - gcc
  9. - clang
  10. addons:
  11. apt:
  12. packages:
  13. - clang-format-3.5
  14. script:
  15. - clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
  16. - docker build --pull --no-cache --rm -t=i3lock -f travis/Dockerfile .
  17. - docker run -e CC=$CC -v $PWD:/usr/src:rw i3lock /bin/sh -c 'autoreconf -fi && mkdir -p build && cd build && (../configure || (cat config.log; false)) && make -j V=1 CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror"'