Skip to content

Commit 44916ae

Browse files
Merge bitcoin-core/secp256k1#1147: ci: print env to allow reproducing the job outside of CI
4e54c03 ci: print env to allow reproducing the job outside of CI (Jonas Nick) Pull request description: Example output: ``` WERROR_CFLAGS="-Werror -pedantic-errors" MAKEFLAGS="-j4" BUILD="check" ECMULTWINDOW="auto" ECMULTGENPRECISION="auto" ASM="no" WIDEMUL="int64" WITH_VALGRIND="no" EXTRAFLAGS="" EXPERIMENTAL="no" ECDH="no" RECOVERY="yes" SCHNORRSIG="no" SECP256K1_TEST_ITERS="" BENCH="yes" SECP256K1_BENCH_ITERS="2" CTIMETEST="yes" EXAMPLES="yes" WRAPPER_CMD="" CC="gcc" AR="" NM="" HOST="" ./ci/cirrus.sh ``` ACKs for top commit: sipa: ACK 4e54c03 real-or-random: ACK bitcoin-core/secp256k1@4e54c03 Tree-SHA512: b74a8724e72b3de7884e4d93fe933dc5043aec37020672b7997a8faebda3b0cbbba1bca69c344109729261ab4a94e76f4eca0d8773dc101a443fdf9e0d7d54f5
2 parents c2ee917 + 4e54c03 commit 44916ae

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ci/cirrus.sh

+20
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ set -x
55

66
export LC_ALL=C
77

8+
# Print relevant CI environment to allow reproducing the job outside of CI.
9+
print_environment() {
10+
# Turn off -x because it messes up the output
11+
set +x
12+
# There are many ways to print variable names and their content. This one
13+
# does not rely on bash.
14+
for i in WERROR_CFLAGS MAKEFLAGS BUILD \
15+
ECMULTWINDOW ECMULTGENPRECISION ASM WIDEMUL WITH_VALGRIND EXTRAFLAGS \
16+
EXPERIMENTAL ECDH RECOVERY SCHNORRSIG \
17+
SECP256K1_TEST_ITERS BENCH SECP256K1_BENCH_ITERS CTIMETEST\
18+
EXAMPLES \
19+
WRAPPER_CMD CC AR NM HOST
20+
do
21+
eval 'printf "%s %s " "$i=\"${'"$i"'}\""'
22+
done
23+
echo "$0"
24+
set -x
25+
}
26+
print_environment
27+
828
# Start persistent wineserver if necessary.
929
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously.
1030
case "$WRAPPER_CMD" in

0 commit comments

Comments
 (0)