aboutsummaryrefslogtreecommitdiffstats
path: root/ci/printenv.sh
blob: 4b7e03fa7d66282b7d7bd12b1f3db7ea9765dc57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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