From 69a05d516bd0c7e369a0ba1fb78aac57a5ea26f2 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 12 Mar 2020 12:30:51 +0100 Subject: Initial commit for the last i3lock commit at this time f3b061233e28ad0cf920c9421adc2459b6920812 --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..15ad1e4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,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"' -- cgit v1.3