]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
travis-ci: import travis yaml controller
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 26 Feb 2014 16:08:41 +0000 (17:08 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 26 Feb 2014 17:04:13 +0000 (18:04 +0100)
.travis.yml is used for automatic builds on travis build farm
(https://travis-ci.org/) if the travis service hook is enabled for the
repo on github.

This inital yaml controller will run 2 different compilers (gcc, clang).
The test suite currently fails, that's why we don't abort yet.

.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..4b58ca3
--- /dev/null
@@ -0,0 +1,27 @@
+language: c
+
+compiler:
+  - gcc
+  - clang
+
+before_install:
+  - sudo apt-get -qq update
+
+install:
+  - sudo apt-get install -qq autopoint
+  - sudo apt-get install -qq bc
+  - sudo apt-get install -qq gtk-doc-tools
+
+before_script:
+  - ./autogen.sh
+
+script:
+  - ./configure
+    && make
+    && ( make check || echo "non-root checks failed" )
+    && make dist
+
+after_script:
+  - test -d tests/diff
+    && echo "cat test diffs:"
+    && find tests/diff -type f | xargs -r cat