blob: 15ad1e4dbb68a4f0b0b106074999340b04e97dda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
sudo: false
dist: trusty
services:
- docker
language: c
compiler:
- gcc
- clang
addons:
apt:
packages:
- clang-format-3.5
script:
- clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
- 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"'
|