Skip to content

Commit e7b77b7

Browse files
committed
Don't run normal functional tests twice.
1 parent 5f628d5 commit e7b77b7

File tree

3 files changed

+29
-32
lines changed

3 files changed

+29
-32
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ jobs:
190190
191191
# x86_64 Linux w/ Bitcoin functional tests (Qt5 & system libs)
192192
- stage: test
193+
name: 'x86_64 Linux [GOAL: install] [bitcoin functional]'
193194
env: >-
194195
HOST=x86_64-unknown-linux-gnu
195196
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev"
@@ -202,6 +203,7 @@ jobs:
202203
203204
# x86_64 Linux w/ single fedpeg test that uses upstream bitcoind as mainchain
204205
- stage: test
206+
name: 'x86_64 Linux [GOAL: install] [bitcoind fedpeg test]'
205207
env: >-
206208
HOST=x86_64-unknown-linux-gnu
207209
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev"
@@ -214,6 +216,7 @@ jobs:
214216
BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=no --disable-tests --disable-bench CPPFLAGS=-DDEBUG_LOCKORDER"
215217
# x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout), no functional tests, LIQUID BUILD
216218
- stage: test
219+
name: 'x86_64 Linux [GOAL: install] [liquid build]'
217220
env: >-
218221
HOST=x86_64-unknown-linux-gnu
219222
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev"

.travis/test_06_script_a.sh

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,4 @@ BEGIN_FOLD build
4747
DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false )
4848
END_FOLD
4949

50-
if [ "$RUN_UNIT_TESTS" = "true" ]; then
51-
BEGIN_FOLD unit-tests
52-
DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib make $MAKEJOBS check VERBOSE=1
53-
END_FOLD
54-
fi
55-
56-
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
57-
extended="--extended --exclude feature_pruning"
58-
fi
59-
60-
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
61-
BEGIN_FOLD functional-tests
62-
DOCKER_EXEC test/functional/test_runner.py --ci --combinedlogslen=4000 --coverage --quiet --failfast ${extended}
63-
END_FOLD
64-
fi
65-
66-
if [ "$RUN_BITCOIN_TESTS" = "true" ]; then
67-
BEGIN_FOLD bitcoin-functional-tests
68-
DOCKER_EXEC test/bitcoin_functional/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet --failfast ${extended}
69-
END_FOLD
70-
fi
71-
72-
if [ "$RUN_FEDPEG_BITCOIND_TEST" = "true" ]; then
73-
BEGIN_FOLD fedpeg-bitcoind-test
74-
BITCOIND_VERSION=0.18.0
75-
BITCOIND_ARCH=x86_64-linux-gnu
76-
DOCKER_EXEC curl -O https://bitcoincore.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz
77-
DOCKER_EXEC tar -zxf bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz
78-
DOCKER_EXEC test/functional/feature_fedpeg.py --parent_bitcoin --parent_binpath $(pwd)/bitcoin-$BITCOIND_VERSION/bin/bitcoind
79-
END_FOLD
80-
fi
81-
8250
cd ${TRAVIS_BUILD_DIR} || (echo "could not enter travis build dir $TRAVIS_BUILD_DIR"; exit 1)

.travis/test_06_script_b.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,29 @@ if [ "$RUN_FUZZ_TESTS" = "true" ]; then
2525
DOCKER_EXEC test/fuzz/test_runner.py -l DEBUG ${DIR_FUZZ_IN}
2626
END_FOLD
2727
fi
28+
29+
if [ "$RUN_UNIT_TESTS" = "true" ]; then
30+
BEGIN_FOLD unit-tests
31+
DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib make $MAKEJOBS check VERBOSE=1
32+
END_FOLD
33+
fi
34+
35+
if [ "$RUN_BITCOIN_TESTS" = "true" ]; then
36+
BEGIN_FOLD bitcoin-functional-tests
37+
DOCKER_EXEC test/bitcoin_functional/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet --failfast ${extended}
38+
END_FOLD
39+
fi
40+
41+
if [ "$RUN_FEDPEG_BITCOIND_TEST" = "true" ]; then
42+
BEGIN_FOLD fedpeg-bitcoind-test
43+
BITCOIND_VERSION=0.18.0
44+
BITCOIND_ARCH=x86_64-linux-gnu
45+
DOCKER_EXEC curl -O https://bitcoincore.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz
46+
DOCKER_EXEC tar -zxf bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz
47+
DOCKER_EXEC test/functional/feature_fedpeg.py --parent_bitcoin --parent_binpath $(pwd)/bitcoin-$BITCOIND_VERSION/bin/bitcoind
48+
END_FOLD
49+
fi
50+
51+
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
52+
extended="--extended --exclude feature_pruning"
53+
fi

0 commit comments

Comments
 (0)