Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: scripts/travis-build.sh

Issue 1946293002: travis: verify out-of-tree builds & dist targets (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: update filelist after recent commits Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/travis-build.sh
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh
index 3681f1b5cfaf1654945dc6d760acc954893f9f82..e994fe7b4f003786922aac7f46eed1a51c678651 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 "$@"
« no previous file with comments | « Makefile.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698