Skip to content

Commit 4e54c03

Browse files
committed
ci: print env to allow reproducing the job outside of CI
1 parent a43e982 commit 4e54c03

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)