File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 6
6
7
7
export LC_ALL=C
8
8
9
+ export PATH=$PWD /ci/retry:$PATH
10
+
9
11
${CI_RETRY_EXE} apt-get update
10
12
# Lint dependencies:
11
13
# - curl/xz-utils (to install shellcheck)
Original file line number Diff line number Diff line change @@ -15,9 +15,12 @@ export BASE_ROOT_DIR
15
15
# The depends dir.
16
16
# This folder exists only on the ci guest, and on the ci host as a volume.
17
17
export DEPENDS_DIR=${DEPENDS_DIR:- $BASE_ROOT_DIR / depends}
18
- # A folder for the ci system to put temporary files (ccache , datadirs for tests, ...)
19
- # This folder only exists on the ci host .
18
+ # A folder for the ci system to put temporary files (build result , datadirs for tests, ...)
19
+ # This folder only exists on the ci guest .
20
20
export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:- $BASE_ROOT_DIR / ci/ scratch}
21
+ # A folder for the ci system to put executables.
22
+ # This folder only exists on the ci guest.
23
+ export BINS_SCRATCH_DIR=" ${BASE_SCRATCH_DIR} /bins/"
21
24
22
25
echo " Setting specific values in env"
23
26
if [ -n " ${FILE_ENV} " ]; then
@@ -69,5 +72,4 @@ export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
69
72
export CI_BASE_PACKAGES=${CI_BASE_PACKAGES:- build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps bison}
70
73
export GOAL=${GOAL:- install}
71
74
export DIR_QA_ASSETS=${DIR_QA_ASSETS:- ${BASE_SCRATCH_DIR} / qa-assets}
72
- export PATH=${BASE_ROOT_DIR} /ci/retry:$PATH
73
75
export CI_RETRY_EXE=${CI_RETRY_EXE:- " retry --" }
Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ if [[ $BITCOIN_CONFIG = *--with-sanitizers=*address* ]]; then # If ran with (ASa
22
22
CI_CONTAINER_CAP=" --cap-add SYS_PTRACE"
23
23
fi
24
24
25
- export BINS_SCRATCH_DIR=" ${BASE_SCRATCH_DIR} /bins/"
26
-
27
25
if [ -z " $DANGER_RUN_CI_ON_HOST " ]; then
28
26
# Export all env vars to avoid missing some.
29
27
# Though, exclude those with newlines to avoid parsing problems.
30
28
python3 -c ' import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value and "HOME" not in key]' | tee /tmp/env
31
29
echo " Creating $CI_IMAGE_NAME_TAG container to run in"
32
- DOCKER_BUILDKIT=1 ${CI_RETRY_EXE} docker build \
30
+ DOCKER_BUILDKIT=1 docker build \
33
31
--file " ${BASE_ROOT_DIR} /ci/test_imagefile" \
34
32
--build-arg " CI_IMAGE_NAME_TAG=${CI_IMAGE_NAME_TAG} " \
35
33
--build-arg " FILE_ENV=${FILE_ENV} " \
62
60
fi
63
61
64
62
CI_EXEC () {
65
- $CI_EXEC_CMD_PREFIX bash -c " export PATH=${BINS_SCRATCH_DIR} :\$ PATH && cd \" ${BASE_ROOT_DIR} \" && $* "
63
+ $CI_EXEC_CMD_PREFIX bash -c " export PATH=${BINS_SCRATCH_DIR} :${BASE_ROOT_DIR} /ci/retry: \$ PATH && cd \" ${BASE_ROOT_DIR} \" && $* "
66
64
}
67
65
export -f CI_EXEC
68
66
You can’t perform that action at this time.
0 commit comments