mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
d58ff4eb01
c4606b84329d760d7cee144bebe05807857edaae Add Travis check for single parameter constructors not marked "explicit" (practicalswift) Pull request description: Make single parameter constructors `explicit` (C++11). Rationale from the developer notes: > - By default, declare single-argument constructors `explicit`. > - *Rationale*: This is a precaution to avoid unintended conversions that might > arise when single-argument constructors are used as implicit conversion > functions. ACKs for top commit: laanwj: ACK c4606b84329d760d7cee144bebe05807857edaae Tree-SHA512: 3e6fd51935fd93b2604b2188664692973d0897469f814cd745b5147d71b99ea5d73c1081cfde9f6393f51f56969e412fcda35d2d54e938a3235b8d40945f31fd
55 lines
1.6 KiB
Bash
Executable File
55 lines
1.6 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 (re-enable 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
|
|
test/lint/extended-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 )
|