diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-04-22 18:10:05 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-04-28 04:45:57 -0300 |
commit | 339d395fbdceabc6b8f70116823abcae5e1e18d5 (patch) | |
tree | b689c484862fa103db6f3484f21cb54ec60077bf /ci | |
parent | ci: print some program versions (diff) | |
download | firejail-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-x | ci/printenv.sh | 25 |
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 | |||
4 | test -f /etc/os-release && . /etc/os-release | ||
5 | |||
6 | cat <<EOF | ||
7 | nproc: $(nproc) | ||
8 | kernel: $(uname -srvm) | ||
9 | distro: $PRETTY_NAME | ||
10 | sh: $(ls -l /bin/sh | sed 's|.* /bin|/bin|') | ||
11 | user: $(id | cut -f -2 -d ' ') | ||
12 | |||
13 | [/etc/os-release] | ||
14 | $(cat /etc/os-release) | ||
15 | EOF | ||
16 | |||
17 | if test -z "$CI_VERBOSE"; then | ||
18 | exit | ||
19 | fi | ||
20 | |||
21 | cat <<EOF | ||
22 | |||
23 | [env] | ||
24 | $(env | LC_ALL=C sort) | ||
25 | EOF | ||