2015-11-06 03:01:49 -05:00
|
|
|
# Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
|
2018-05-11 09:30:48 -04:00
|
|
|
sudo: false
|
2015-11-06 03:01:49 -05:00
|
|
|
dist: trusty
|
2018-05-11 09:30:48 -04:00
|
|
|
services:
|
|
|
|
- docker
|
2015-03-17 03:42:49 -04:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-11-06 03:01:49 -05:00
|
|
|
- clang
|
2015-11-06 02:52:48 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-format-3.5
|
2015-03-17 03:42:49 -04:00
|
|
|
script:
|
|
|
|
- clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|
2018-05-11 09:30:48 -04:00
|
|
|
- docker build --pull --no-cache --rm -t=i3lock -f travis/Dockerfile .
|
|
|
|
- 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"'
|