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.gere...@wacom.com>
---
 .travis.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..8db3cd4
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,16 @@
+language: c
+
+compiler:
+  - gcc
+  - clang
+
+addons:
+  apt:
+    packages:
+      - libgudev-1.0-dev
+      - libxml++2.6-dev
+env:
+  - CFLAGS="-Werror -Wall -Wextra -Wno-error=sign-compare 
-Wno-error=unused-parameter -Wno-error=missing-field-initializers"
+
+script:
+  - ./autogen.sh && make && make check
-- 
2.15.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to