aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2016-05-25 14:36:37 -0400
committerMike Frysinger <vapier@chromium.org>2016-05-25 14:36:37 -0400
commit983d04d36eb8f6b23f7e3932a39a4087c4e1bab2 (patch)
treeeab78ec2dfd25fa51d5d7b1750d21db78b9bac37 /scripts
parent[MIPS] Rename variable mips to mips32 (diff)
downloadbreakpad-983d04d36eb8f6b23f7e3932a39a4087c4e1bab2.tar.xz
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 .
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-build.sh11
1 files changed, 11 insertions, 0 deletions
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 "$@"