-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.cirrus.yml
258 lines (258 loc) · 11.9 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
container:
cpu: 2
memory: 8G
greedy: true
timeout_in: 120m
env:
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
DEBIAN_FRONTEND: "noninteractive"
CTEST_OUTPUT_ON_FAILURE: "ON"
task:
name: "FreeBSD [system libs]"
freebsd_instance:
image_family: freebsd-14-0 # https://cirrus-ci.org/guide/FreeBSD/
cpu: 2
memory: 8G
env:
MAKEJOBS: "-j4"
CCACHE_MAXSIZE: "200M"
CCACHE_COMPRESS: 1
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
install_script:
- pkg install -y e2fsprogs m4 autoconf automake libtool pkgconf cmake boost-libs git gmake libevent python3 ccache sqlite3 databases/py-sqlite3 libzmq4 net/py-pyzmq
- git clone https://github.com/stewartsmith/libeatmydata.git
- cd libeatmydata
- autoreconf -i
- ./configure
- sed -i -e 's/O_DSYNC/O_SYNC/g' $(git grep -l O_DSYNC)
- make
- make install # eatmydata
upstream_clone_script:
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
- cd bitcoin-core
- gmake -C depends NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_ZMQ=1 NO_USDT=1
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DBerkeleyDB_INCLUDE_DIR:PATH="$(pwd)/depends/$(./depends/config.guess)/include" -DWITH_BDB=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DWITH_CCACHE=ON
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- ctest --test-dir ./bld ${MAKEJOBS}
functional_test_script:
- cd bitcoin-core
- eatmydata ./bld/test/functional/test_runner.py $MAKEJOBS --ci --extended --combinedlogslen=19999000 --quiet --failfast --timeout-factor=20
task:
name: "OpenSuse Tumbleweed [system libs]"
container:
image: opensuse/tumbleweed
env:
MAKEJOBS: "-j6"
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
CCACHE_MAXSIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
install_script:
- zypper --non-interactive install -t pattern devel_basis
- zypper --non-interactive install e2fsprogs git pkg-config cmake python3 libevent-devel libboost_headers-devel gcc-c++ ccache zeromq-devel libqt5-qtbase-devel libqt5-qttools-devel qrencode-devel sqlite3-devel
upstream_clone_script:
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_CCACHE=ON
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- ctest --test-dir ./bld ${MAKEJOBS}
functional_test_script:
- cd bitcoin-core
- ./bld/test/functional/test_runner.py $MAKEJOBS --ci --extended --combinedlogslen=199999000 --quiet --failfast --timeout-factor=3
task:
container:
image: ubuntu:devel
cpu: 4
memory: 16G
greedy: true
env:
MAKEJOBS: "-j6" # Reduce jobs to avoid OOM under gcc
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
CCACHE_MAXSIZE: "400M"
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
info_script:
- free -m -h
- nproc
- uname --kernel-name --kernel-release
- lscpu
- df -h
install_script:
- apt update && apt install -y git && apt install -y git ccache build-essential cmake pkg-config python3-zmq libevent-dev libboost-dev qttools5-dev qttools5-dev-tools systemtap-sdt-dev libqrencode-dev libzmq3-dev
upstream_clone_script:
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
- cd bitcoin-core
matrix:
- name: "ubuntu:devel [system libs, asan, clang, sqlite-only, libc++]"
install_matrix_script:
- apt install -y libc++abi-dev libc++-dev clang llvm libsqlite3-dev
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=address,integer,undefined -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++;-stdlib=libc++"
- name: "ubuntu:devel [system libs, asan, clang, sqlite-only]"
install_matrix_script:
- apt install -y clang llvm libsqlite3-dev
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=address,integer,undefined -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
- name: "ubuntu:devel [system libs, asan, gcc, bdb-only]"
install_matrix_script:
- apt install -y libdb++-dev
- cd bitcoin-core
- echo 'nonnull-attribute:streams.h' >> test/sanitizer_suppressions/ubsan # runtime error: null pointer passed as argument 1, which is declared to never be null, fwrite
- echo 'nonnull-attribute:streams.cpp' >> test/sanitizer_suppressions/ubsan # runtime error: null pointer passed as argument 1, which is declared to never be null, fwrite
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=OFF -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=address,undefined -DWITH_BDB=ON -DWITH_SQLITE=OFF -DWARN_INCOMPATIBLE_BDB=OFF -DAPPEND_CXXFLAGS="-Wno-error=maybe-uninitialized"
- name: "ubuntu:devel [system libs, tsan, clang, sqlite-only, libc++]"
install_matrix_script:
- apt install -y libc++abi-dev libc++-dev clang llvm libsqlite3-dev
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=thread -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++;-stdlib=libc++"
- name: "ubuntu:devel [system libs, tsan, clang, sqlite-only]"
install_matrix_script:
- apt install -y clang llvm libsqlite3-dev
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=thread -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
- name: "ubuntu:devel [system libs, tsan, gcc, bdb-only, libqt suppression]"
install_matrix_script:
- apt install -y libdb++-dev
- cd bitcoin-core
- echo 'race:libQt5Core' >> test/sanitizer_suppressions/tsan
- echo 'race:libQt5Test' >> test/sanitizer_suppressions/tsan
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=OFF -DBUILD_GUI=ON -DWITH_USDT=ON -DWITH_CCACHE=ON -DSANITIZERS=thread -DWITH_BDB=ON -DWITH_SQLITE=OFF -DWARN_INCOMPATIBLE_BDB=OFF -DAPPEND_CXXFLAGS="-Wno-error=maybe-uninitialized"
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- export ASAN_OPTIONS="alloc_dealloc_mismatch=0"
- export LSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/lsan"
- export TSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/tsan:halt_on_error=1"
- export UBSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1"
- ctest --test-dir ./bld ${MAKEJOBS}
- ./bld/test/functional/test_runner.py $MAKEJOBS --ci --exclude feature_dbcrash --extended --combinedlogslen=199999000 --quiet --failfast --timeout-factor=9
task:
name: "Alpine [system libs]"
container:
image: alpine:latest
env:
LC_ALL: "C"
MAKEJOBS: "-j8"
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
CCACHE_MAXSIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
install_script:
- apk --no-cache --update add e2fsprogs-extra cmake g++ gcc git make pkgconfig python3 boost-dev libevent-dev zeromq-dev qt5-qtbase-dev qt5-qttools-dev ccache libqrencode-dev
upstream_clone_script:
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_CCACHE=ON
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- ctest --test-dir ./bld ${MAKEJOBS}
functional_test_script:
- cd bitcoin-core
- ./bld/test/functional/test_runner.py $MAKEJOBS --ci --extended --combinedlogslen=199999000 --quiet --failfast --timeout-factor=3
task:
name: "Arch [system libs]"
container:
image: archlinux:latest
env:
MAKEJOBS: "-j8"
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
CCACHE_MAXSIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
install_script:
- pacman --noconfirm -Syu e2fsprogs cmake git gcc make python3 boost libevent zeromq ccache qt5 qrencode
upstream_clone_script:
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_CCACHE=ON
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- ctest --test-dir ./bld ${MAKEJOBS}
functional_test_script:
- cd bitcoin-core
- ./bld/test/functional/test_runner.py $MAKEJOBS --ci --extended --combinedlogslen=199999000 --quiet --failfast --timeout-factor=3
task:
name: "Fedora [system libs]"
container:
image: fedora:rawhide
env:
CCACHE_MAXSIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
MAKEJOBS: "-j8"
ccache_cache:
folder: "/tmp/ccache_dir"
upstream_clone_script:
- dnf install git -y
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
install_pkgs_script:
- dnf install e2fsprogs ccache gcc-c++ make cmake libevent-devel boost-devel python3 qt5-qttools-devel qt5-qtbase-devel sqlite-devel qrencode-devel systemtap-sdt-devel zeromq-devel -y
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_CCACHE=ON -DWITH_ZMQ=ON -DWITH_USDT=ON
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
check_script:
- cd bitcoin-core
- ctest --test-dir ./bld ${MAKEJOBS}
functional_test_script:
- cd bitcoin-core
- ./bld/test/functional/test_runner.py $MAKEJOBS --ci --extended --combinedlogslen=199999000 --quiet --failfast --timeout-factor=5
task:
name: "fuzz, asan, system libs [fedora]"
container:
image: fedora:rawhide
cpu: 4
memory: 8G
greedy: true
env:
CCACHE_MAXSIZE: "400M"
CCACHE_DIR: "/tmp/ccache_dir"
MAKEJOBS: "-j8"
ccache_cache:
folder: "/tmp/ccache_dir"
upstream_clone_script:
- dnf install git -y
- git clone https://github.com/bitcoin/bitcoin --depth=1 ./bitcoin-core
- git clone https://github.com/bitcoin-core/qa-assets --depth=1
install_pkgs_script:
- dnf install make cmake libevent-devel boost-devel sqlite-devel python3 clang llvm -y
configure_script:
- cd bitcoin-core
- cmake -B ./bld -DWERROR=ON -DWITH_CCACHE=ON -DBUILD_FOR_FUZZING=ON -DSANITIZERS=fuzzer,address,integer,undefined,float-divide-by-zero -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
make_script:
- cd bitcoin-core
- cmake --build ./bld $MAKEJOBS
fuzz_script:
- cd bitcoin-core
- export LSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/lsan"
- export TSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/tsan:halt_on_error=1"
- export UBSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1"
- ./bld/test/fuzz/test_runner.py $MAKEJOBS -l DEBUG ../qa-assets/fuzz_corpora/