]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Check distclean target in Travis build 809/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 9 Jul 2018 15:32:57 +0000 (11:32 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 10 Jul 2018 16:33:16 +0000 (12:33 -0400)
Move the build commands to a shell script, run with the -e flag so any
failure causes the script to exit.  In the script, verify that "make
distclean" removes everything produced by "make" and "make check".

.travis-ci.sh [new file with mode: 0644]
.travis.yml

diff --git a/.travis-ci.sh b/.travis-ci.sh
new file mode 100644 (file)
index 0000000..4e6e1b6
--- /dev/null
@@ -0,0 +1,11 @@
+cd src
+autoreconf
+./configure --enable-maintainer-mode --with-ldap
+make $MAKEVARS
+make check
+make distclean
+# Check for files unexpectedly not removed by make distclean.
+rm -rf autom4te.cache configure include/autoconf.h.in
+if [ -n "$(git ls-files -o)" ]; then
+  exit 1
+fi
index eb4803646a694f6f736933b1d26e04c925e8c1af..a7980d7e4ae1ab08d26d5d63506f1cd13ee10abe 100644 (file)
@@ -21,4 +21,4 @@ before_install:
   - sudo make install
   - cd ../..
 
-script: cd src && autoreconf && ./configure --enable-maintainer-mode --with-ldap && make $MAKEVARS && make check
+script: sh -ex .travis-ci.sh