From 983d04d36eb8f6b23f7e3932a39a4087c4e1bab2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 25 May 2016 14:36:37 -0400 Subject: travis: verify out-of-tree builds & dist targets Required updating a lot of dist files in the process. R=ted.mielczarek@gmail.com Review URL: https://codereview.chromium.org/1946293002 . --- scripts/travis-build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts') diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index 3681f1b5..e994fe7b 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -19,14 +19,25 @@ setup_env() { export JOBS=$(( $NCPUS < 4 ? $NCPUS : 4 )) } +# Do an in-tree build and make sure tests pass. build() { ./configure make -j${JOBS} check VERBOSE=1 + make distclean +} + +# Do an out-of-tree build and make sure we can create a release tarball. +build_out_of_tree() { + mkdir -p build/native + cd build/native + ../../configure + make -j${JOBS} distcheck VERBOSE=1 } main() { setup_env build + build_out_of_tree } main "$@" -- cgit v1.2.1