travis: update comments and add git status check

Want to make sure we don't forget to update .gitignore files!
master
Mike Frysinger 2016-06-10 14:45:48 -04:00
parent a995534042
commit 046290cd9e
3 changed files with 26 additions and 5 deletions

2
docs/naturaldocs/project/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# This is dynamically generated based on the version & source files.
/Menu.txt

View File

@ -1,4 +1,4 @@
/* Generated from config.hin via autoheader for cmake; see bootstraps.h. */
/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. */
/* Define is you are building for Win32 API */
#cmakedefine BGDWIN32
@ -103,8 +103,7 @@
/* Define as const if the declaration of iconv() needs const. */
#cmakedefine ICONV_CONST
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#cmakedefine LT_OBJDIR
/* Name of package */

View File

@ -19,6 +19,24 @@ update_os() {
esac
}
check_git_status() {
local status
# Make sure our gitignore files are up-to-date, and we aren't
# forgetting to commit the few generated (e.g. cmake.in) files.
# Note: We ignore config.h.cmake changes since it indirectly
# depends on the format of the output of autoheader :/.
status=$(git status --porcelain | grep -v '^ M src/config.h.cmake') || :
if [[ -n ${status} ]]; then
echo "Missing git repo updates (gitignore/etc...):"
echo "$ git status"
echo "${status}"
echo "$ git diff"
git diff
exit 1
fi
}
build_autotools() {
v --fold="bootstrap" ./bootstrap.sh
@ -38,9 +56,11 @@ build_autotools() {
# Make sure failures are shown in the log.
m check VERBOSE=1
# TODO: Re-enable this once out-of-tree tests work.
check_git_status
# Verify building a release works (also does things like read-only
# out of tree builds for use).
m distcheck VERBOSE=1
m install DESTDIR=$PWD/install-autotools
# Clean things up for cmake.
m distclean