File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 71
71
- stage : lint
72
72
name : ' lint'
73
73
env :
74
- cache : false
74
+ cache : pip
75
75
language : python
76
76
python : ' 3.5' # Oldest supported version according to doc/dependencies.md
77
77
install :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ echo "Fallback to default values in env (if not yet set)"
24
24
export MAKEJOBS=${MAKEJOBS:- -j4}
25
25
# A folder for the ci system to put temporary files (ccache, datadirs for tests, ...)
26
26
# This folder only exists on the ci host.
27
- export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:- $BASE_ROOT_DIR / ci/ scratch/ }
27
+ export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:- $BASE_ROOT_DIR / ci/ scratch}
28
28
# What host to compile for. See also ./depends/README.md
29
29
# Tests that need cross-compilation export the appropriate HOST.
30
30
# Tests that run natively guess the host
@@ -53,7 +53,6 @@ export DEPENDS_DIR=${DEPENDS_DIR:-$BASE_ROOT_DIR/depends}
53
53
export BASE_OUTDIR=${BASE_OUTDIR:- $BASE_SCRATCH_DIR / out/ $HOST }
54
54
export PREVIOUS_RELEASES_DIR=${PREVIOUS_RELEASES_DIR:- $BASE_ROOT_DIR / releases/ $HOST }
55
55
export SDK_URL=${SDK_URL:- https:// bitcoincore.org/ depends-sources/ sdks}
56
- export WINEDEBUG=${WINEDEBUG:- fixme-all}
57
56
export DOCKER_PACKAGES=${DOCKER_PACKAGES:- build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps}
58
57
export GOAL=${GOAL:- install}
59
58
export DIR_QA_ASSETS=${DIR_QA_ASSETS:- ${BASE_SCRATCH_DIR} / qa-assets}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export ASAN_OPTIONS="detect_stack_use_after_return=1:check_initialization_order=
26
26
export LSAN_OPTIONS=" suppressions=${BASE_ROOT_DIR} /test/sanitizer_suppressions/lsan"
27
27
export TSAN_OPTIONS=" suppressions=${BASE_ROOT_DIR} /test/sanitizer_suppressions/tsan:log_path=${BASE_SCRATCH_DIR} /sanitizer-output/tsan"
28
28
export UBSAN_OPTIONS=" suppressions=${BASE_ROOT_DIR} /test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"
29
- env | grep -E ' ^(BITCOIN_CONFIG|BASE_|QEMU_|CCACHE_|WINEDEBUG| LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(ASAN|LSAN|TSAN|UBSAN)_OPTIONS|TEST_PREVIOUS_RELEASES|PREVIOUS_RELEASES_DIR)' | tee /tmp/env
29
+ env | grep -E ' ^(BITCOIN_CONFIG|BASE_|QEMU_|CCACHE_|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(ASAN|LSAN|TSAN|UBSAN)_OPTIONS|TEST_PREVIOUS_RELEASES|PREVIOUS_RELEASES_DIR)' | tee /tmp/env
30
30
if [[ $HOST = * -mingw32 ]]; then
31
31
DOCKER_ADMIN=" --cap-add SYS_ADMIN"
32
32
elif [[ $BITCOIN_CONFIG = * --with-sanitizers= * address* ]]; then # If ran with (ASan + LSan), Docker needs access to ptrace (https://github.com/google/sanitizers/issues/764)
Original file line number Diff line number Diff line change 7
7
export LC_ALL=C.UTF-8
8
8
9
9
BITCOIN_CONFIG_ALL=" --disable-dependency-tracking --prefix=$DEPENDS_DIR /$HOST --bindir=$BASE_OUTDIR /bin --libdir=$BASE_OUTDIR /lib"
10
+ DOCKER_EXEC " command -v ccache > /dev/null && ccache --zero-stats"
10
11
if [ -z " $NO_DEPENDS " ]; then
11
12
DOCKER_EXEC ccache --max-size=$CCACHE_SIZE
12
13
fi
@@ -44,3 +45,7 @@ trap 'DOCKER_EXEC "cat ${BASE_SCRATCH_DIR}/sanitizer-output/* 2> /dev/null"' ERR
44
45
BEGIN_FOLD build
45
46
DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo " Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false )
46
47
END_FOLD
48
+
49
+ BEGIN_FOLD ccache_stats
50
+ DOCKER_EXEC " command -v ccache > /dev/null && ccache --version | head -n 1 && ccache --show-stats"
51
+ END_FOLD
You can’t perform that action at this time.
0 commit comments