aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-04-22 18:10:05 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-04-28 04:45:57 -0300
commit339d395fbdceabc6b8f70116823abcae5e1e18d5 (patch)
treeb689c484862fa103db6f3484f21cb54ec60077bf /ci
parentci: print some program versions (diff)
downloadfirejail-339d395fbdceabc6b8f70116823abcae5e1e18d5.tar.gz
firejail-339d395fbdceabc6b8f70116823abcae5e1e18d5.tar.zst
firejail-339d395fbdceabc6b8f70116823abcae5e1e18d5.zip
ci: print env-related settings in each job
To make debugging easier. Use a separate shell script instead of just a make target to ensure that it can safely run before ./configure and without having make installed.
Diffstat (limited to 'ci')
-rwxr-xr-xci/printenv.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/ci/printenv.sh b/ci/printenv.sh
new file mode 100755
index 000000000..4b7e03fa7
--- /dev/null
+++ b/ci/printenv.sh
@@ -0,0 +1,25 @@
1#!/bin/sh
2# Print information that may be useful for debugging CI.
3
4test -f /etc/os-release && . /etc/os-release
5
6cat <<EOF
7nproc: $(nproc)
8kernel: $(uname -srvm)
9distro: $PRETTY_NAME
10sh: $(ls -l /bin/sh | sed 's|.* /bin|/bin|')
11user: $(id | cut -f -2 -d ' ')
12
13[/etc/os-release]
14$(cat /etc/os-release)
15EOF
16
17if test -z "$CI_VERBOSE"; then
18 exit
19fi
20
21cat <<EOF
22
23[env]
24$(env | LC_ALL=C sort)
25EOF