@@ -14,7 +14,8 @@ stages:
14
14
env :
15
15
global :
16
16
- MAKEJOBS=-j3
17
- - RUN_TESTS=false
17
+ - RUN_UNIT_TESTS=true
18
+ - RUN_FUNCTIONAL_TESTS=true
18
19
- RUN_BENCH=false # Set to true for any one job that has debug enabled, to quickly check bench is not crashing or hitting assertions
19
20
- DOCKER_NAME_TAG=ubuntu:18.04
20
21
- LC_ALL=C.UTF-8
@@ -59,10 +60,10 @@ script:
59
60
- cd bitcoin-$HOST
60
61
- BEGIN_FOLD configure; DOCKER_EXEC ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false); END_FOLD
61
62
- BEGIN_FOLD build; DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false ); END_FOLD
62
- - if [ "$RUN_TESTS " = "true" ]; then BEGIN_FOLD unit-tests; DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib make $MAKEJOBS check VERBOSE=1; END_FOLD; fi
63
+ - if [ "$RUN_UNIT_TESTS " = "true" ]; then BEGIN_FOLD unit-tests; DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib make $MAKEJOBS check VERBOSE=1; END_FOLD; fi
63
64
- if [ "$RUN_BENCH" = "true" ]; then BEGIN_FOLD bench; DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib $OUTDIR/bin/bench_bitcoin -scaling=0.001 ; END_FOLD; fi
64
65
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then extended="--extended --exclude feature_pruning,feature_dbcrash"; fi
65
- - if [ "$RUN_TESTS " = "true" ]; then BEGIN_FOLD functional-tests; DOCKER_EXEC test/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet --failfast ${extended}; END_FOLD; fi
66
+ - if [ "$RUN_FUNCTIONAL_TESTS " = "true" ]; then BEGIN_FOLD functional-tests; DOCKER_EXEC test/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet --failfast ${extended}; END_FOLD; fi
66
67
after_script :
67
68
- echo $TRAVIS_COMMIT_RANGE
68
69
- echo $TRAVIS_COMMIT_LOG
74
75
HOST=arm-linux-gnueabihf
75
76
PACKAGES="g++-arm-linux-gnueabihf"
76
77
DEP_OPTS="NO_QT=1"
78
+ RUN_UNIT_TESTS=false
79
+ RUN_FUNCTIONAL_TESTS=false
77
80
GOAL="install"
78
81
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
79
82
# Win32
83
86
DPKG_ADD_ARCH="i386"
84
87
DEP_OPTS="NO_QT=1"
85
88
PACKAGES="python3 nsis g++-mingw-w64-i686 wine-binfmt wine32"
86
- RUN_TESTS=true
87
89
GOAL="install"
88
90
BITCOIN_CONFIG="--enable-reduce-exports"
89
91
# Win64
92
94
HOST=x86_64-w64-mingw32
93
95
DEP_OPTS="NO_QT=1"
94
96
PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
95
- RUN_TESTS=true
96
97
GOAL="install"
97
98
BITCOIN_CONFIG="--enable-reduce-exports"
98
99
# 32-bit + dash
@@ -101,7 +102,6 @@ jobs:
101
102
HOST=i686-pc-linux-gnu
102
103
PACKAGES="g++-multilib python3-zmq"
103
104
DEP_OPTS="NO_QT=1"
104
- RUN_TESTS=true
105
105
GOAL="install"
106
106
BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
107
107
CONFIG_SHELL="/bin/dash"
@@ -111,26 +111,32 @@ jobs:
111
111
HOST=x86_64-unknown-linux-gnu
112
112
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev"
113
113
DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1"
114
- RUN_TESTS=true
115
- RUN_BENCH=true
116
114
GOAL="install"
117
115
BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --enable-debug CXXFLAGS=\"-g0 -O2\""
118
- # x86_64 Linux (Qt5 & system libs)
116
+ # x86_64 Linux (no depends, only system libs)
119
117
- stage : test
120
118
env : >-
121
119
HOST=x86_64-unknown-linux-gnu
122
120
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"
123
121
NO_DEPENDS=1
124
- RUN_TESTS=true
125
122
GOAL="install"
126
123
BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER"
124
+ # x86_64 Linux (sanitizers)
125
+ - stage : test
126
+ env : >-
127
+ HOST=x86_64-unknown-linux-gnu
128
+ PACKAGES="clang 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"
129
+ NO_DEPENDS=1
130
+ RUN_BENCH=true
131
+ RUN_FUNCTIONAL_TESTS=false # Disabled for now, can be combined with the other x86_64 linux NO_DEPENDS job when functional tests pass the sanitizers
132
+ GOAL="install"
133
+ BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=undefined CC=clang CXX=clang++"
127
134
# x86_64 Linux, No wallet
128
135
- stage : test
129
136
env : >-
130
137
HOST=x86_64-unknown-linux-gnu
131
138
PACKAGES="python3"
132
139
DEP_OPTS="NO_WALLET=1"
133
- RUN_TESTS=true
134
140
GOAL="install"
135
141
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
136
142
# Cross-Mac
@@ -139,6 +145,8 @@ jobs:
139
145
HOST=x86_64-apple-darwin14
140
146
PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git"
141
147
OSX_SDK=10.11
148
+ RUN_UNIT_TESTS=false
149
+ RUN_FUNCTIONAL_TESTS=false
142
150
GOAL="all deploy"
143
151
BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror"
144
152
- stage : lint
0 commit comments