File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8
8
8
9
9
# The root dir.
10
10
# The ci system copies this folder.
11
- # This is where the build is done (depends and dist) .
11
+ # This is where the depends build is done.
12
12
BASE_ROOT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /../../ > /dev/null 2>&1 && pwd )
13
13
export BASE_ROOT_DIR
14
14
@@ -49,8 +49,10 @@ export CCACHE_DIR=${CCACHE_DIR:-$BASE_SCRATCH_DIR/.ccache}
49
49
# The depends dir.
50
50
# This folder exists on the ci host and ci guest. Changes are propagated back and forth.
51
51
export DEPENDS_DIR=${DEPENDS_DIR:- $BASE_ROOT_DIR / depends}
52
- # Folder where the build is done (bin and lib).
52
+ # Folder where the build result is put (bin and lib).
53
53
export BASE_OUTDIR=${BASE_OUTDIR:- $BASE_SCRATCH_DIR / out/ $HOST }
54
+ # Folder where the build is done (dist and out-of-tree build).
55
+ export BASE_BUILD_DIR=${BASE_BUILD_DIR:- $BASE_SCRATCH_DIR / build}
54
56
export PREVIOUS_RELEASES_DIR=${PREVIOUS_RELEASES_DIR:- $BASE_ROOT_DIR / releases/ $HOST }
55
57
export SDK_URL=${SDK_URL:- https:// bitcoincore.org/ depends-sources/ sdks}
56
58
export DOCKER_PACKAGES=${DOCKER_PACKAGES:- build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
18
18
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
19
19
fi
20
20
21
- mkdir -p " ${BASE_SCRATCH_DIR} "
21
+ # Create folders that are mounted into the docker
22
22
mkdir -p " ${CCACHE_DIR} "
23
23
mkdir -p " ${PREVIOUS_RELEASES_DIR} "
24
24
Original file line number Diff line number Diff line change 17
17
fi
18
18
END_FOLD
19
19
20
- DOCKER_EXEC mkdir -p build
21
- export P_CI_DIR=" $P_CI_DIR /build "
20
+ DOCKER_EXEC mkdir -p " ${BASE_BUILD_DIR} "
21
+ export P_CI_DIR=" ${BASE_BUILD_DIR} "
22
22
23
23
BEGIN_FOLD configure
24
- DOCKER_EXEC .. /configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( (DOCKER_EXEC cat config.log) && false)
24
+ DOCKER_EXEC " ${BASE_ROOT_DIR} /configure" --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( (DOCKER_EXEC cat config.log) && false)
25
25
END_FOLD
26
26
27
27
BEGIN_FOLD distdir
28
- # Create folder on host and docker, so that `cd` works
29
- mkdir -p " bitcoin-$HOST "
30
28
DOCKER_EXEC make distdir VERSION=$HOST
31
29
END_FOLD
32
30
33
- export P_CI_DIR=" $P_CI_DIR /bitcoin-$HOST "
31
+ export P_CI_DIR=" ${BASE_BUILD_DIR} /bitcoin-$HOST "
34
32
35
33
BEGIN_FOLD configure
36
34
DOCKER_EXEC ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( (DOCKER_EXEC cat config.log) && false)
Original file line number Diff line number Diff line change 31
31
32
32
if [ " $RUN_UNIT_TESTS_SEQUENTIAL " = " true" ]; then
33
33
BEGIN_FOLD unit-tests-seq
34
- DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR /$HOST /lib " ${BASE_ROOT_DIR} /build/ bitcoin-*/src/test/test_bitcoin" --catch_system_errors=no -l test_suite
34
+ DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR /$HOST /lib " ${BASE_BUILD_DIR} / bitcoin-*/src/test/test_bitcoin* " --catch_system_errors=no -l test_suite
35
35
END_FOLD
36
36
fi
37
37
You can’t perform that action at this time.
0 commit comments