mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
4c2211dd41
414326952c use export LC_ALL=C.UTF-8 (Julian Fleischer) 728c82d029 make script exit if a command fails (Julian Fleischer) 506890b24d move remaining travis build steps into individual files (Julian Fleischer) 272306ea57 number .travis/ script according to build lifecycle and add README to explain (Julian Fleischer) 519e2739cf move lint stage up to resemble travis build ui (Julian Fleischer) 86d34f0e65 abort script in END_FOLD on non-zero exit code (Julian Fleischer) 4f2f88c7b0 move script sections info individual files and comply with shellcheck (Julian Fleischer) Pull request description: This PR is extracted from https://github.com/bitcoin/bitcoin/pull/13816 to make that one easier to review. It follows on https://github.com/bitcoin/bitcoin/pull/13849 and https://github.com/bitcoin/bitcoin/pull/13851 In here the shell script parts from `travis.yml` are extracted into `.travis/before_install.sh`, `.travis/install.sh`, `.travis/before_script.sh`, `.travis/script.sh`, and `.travis/lint.sh`. This has the benefit that `test/lint/lint-shell.sh` will also shellcheck these parts. Also it makes the individual script parts more readable. Tree-SHA512: c497e1687ceb1c1d795de177d3fc35af908bc8e3f781a871afabdecf031e581d4db229290627249e35ef7c09952bc34884e4734ea91d40f57b4a9efb85bba2e3
54 lines
1.5 KiB
Bash
Executable File
54 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script is executed inside the builder image
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
set -e
|
|
|
|
source ./ci/matrix.sh
|
|
|
|
unset CC; unset CXX
|
|
unset DISPLAY
|
|
|
|
export CCACHE_COMPRESS=${CCACHE_COMPRESS:-1}
|
|
export CCACHE_SIZE=${CCACHE_SIZE:-400M}
|
|
|
|
if [ "$PULL_REQUEST" != "false" ]; then test/lint/commit-script-check.sh $COMMIT_RANGE; fi
|
|
|
|
if [ "$CHECK_DOC" = 1 ]; then
|
|
# TODO: Verify subtrees
|
|
#test/lint/git-subtree-check.sh src/crypto/ctaes
|
|
#test/lint/git-subtree-check.sh src/secp256k1
|
|
#test/lint/git-subtree-check.sh src/univalue
|
|
#test/lint/git-subtree-check.sh src/leveldb
|
|
# TODO: Check docs (reenable after all Bitcoin PRs have been merged and docs fully fixed)
|
|
#test/lint/check-doc.py
|
|
# Check rpc consistency
|
|
test/lint/check-rpc-mappings.py .
|
|
# Run all linters
|
|
test/lint/lint-all.sh
|
|
fi
|
|
|
|
ccache --max-size=$CCACHE_SIZE
|
|
|
|
if [ -n "$USE_SHELL" ]; then
|
|
export CONFIG_SHELL="$USE_SHELL"
|
|
fi
|
|
|
|
BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$BUILD_DIR/depends/$HOST --bindir=$OUT_DIR/bin --libdir=$OUT_DIR/lib"
|
|
|
|
( test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' ) || ./autogen.sh
|
|
|
|
rm -rf build-ci
|
|
mkdir build-ci
|
|
cd build-ci
|
|
|
|
../configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
|
|
make distdir VERSION=$BUILD_TARGET
|
|
|
|
cd dashcore-$BUILD_TARGET
|
|
./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
|
|
|
|
make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
|