firejail/ci/printenv.sh
Kelvin M. Klann 339d395fbd 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.
2023-04-28 04:45:57 -03:00

25 lines
399 B
Bash
Executable file

#!/bin/sh
# Print information that may be useful for debugging CI.
test -f /etc/os-release && . /etc/os-release
cat <<EOF
nproc: $(nproc)
kernel: $(uname -srvm)
distro: $PRETTY_NAME
sh: $(ls -l /bin/sh | sed 's|.* /bin|/bin|')
user: $(id | cut -f -2 -d ' ')
[/etc/os-release]
$(cat /etc/os-release)
EOF
if test -z "$CI_VERBOSE"; then
exit
fi
cat <<EOF
[env]
$(env | LC_ALL=C sort)
EOF