summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-11-13 15:47:34 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2017-11-14 12:54:56 +1000
commitc0cce4c14cbda8b5ff89548a40418ff3a42f7274 (patch)
tree076532dbf8bc686bdcd7e5e058dbf5b5569c9b01
parent4a96a58f2693b291b91e21b7e34f5c5e04015f3f (diff)
downloadxf86-input-wacom-c0cce4c14cbda8b5ff89548a40418ff3a42f7274.tar.gz
Add Travis-CI integration
Adds a .travis.yml file which allows the Travis-CI service to build and test the project. This should ensure we're immediately warned of potential issues even if someone forgets to run the test suite before pushing. The build is performed with "-Wall -Wextra -Werror" (with only a handful of currently-necessary exceptions) on both GCC and Clang. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--.travis.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..864b7cd
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+language: c
+
+compiler:
+ - gcc
+ - clang
+
+addons:
+ apt:
+ packages:
+ - xutils-dev
+ - xserver-xorg-dev
+ - libx11-dev
+ - libxi-dev
+ - libxrandr-dev
+ - libxinerama-dev
+ - libudev-dev
+
+env:
+ - CFLAGS="-Werror -Wall -Wextra -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=cast-qual"
+
+script:
+ # We don't want our CFLAGS (especially -Werror) to apply at `configure`
+ # time so short-circuit our environment at that moment and provide the
+ # flags to `make` instead. Not doing so results in an incorrect config:
+ # 'checking for rint in -lm... no' because of a builtin-declaration-mismatch
+ # warning (error) in the auto-generated feature test.
+ - CFLAGS="" ./autogen.sh && make CFLAGS="$CFLAGS" && make check