mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 01:35:06 +01:00
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 .
This commit is contained in:
parent
71a5ee37a5
commit
983d04d36e
3 changed files with 504 additions and 165 deletions
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue