From: Greg Hudson Date: Mon, 9 Jul 2018 15:32:57 +0000 (-0400) Subject: Check distclean target in Travis build X-Git-Tag: krb5-1.17-beta1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c547e03daffe18c5477be7075e52f69f84acb08;p=thirdparty%2Fkrb5.git Check distclean target in Travis build 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". --- diff --git a/.travis-ci.sh b/.travis-ci.sh new file mode 100644 index 0000000000..4e6e1b6a17 --- /dev/null +++ b/.travis-ci.sh @@ -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 diff --git a/.travis.yml b/.travis.yml index eb4803646a..a7980d7e4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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