summaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/dump-environment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci/scripts/dump-environment.sh')
-rwxr-xr-xsrc/ci/scripts/dump-environment.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ci/scripts/dump-environment.sh b/src/ci/scripts/dump-environment.sh
new file mode 100755
index 000000000..c6774b52a
--- /dev/null
+++ b/src/ci/scripts/dump-environment.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# This script dumps information about the build environment to stdout.
+
+set -euo pipefail
+IFS=$'\n\t'
+
+echo "environment variables:"
+printenv | sort
+echo
+
+echo "disk usage:"
+df -h
+echo
+
+echo "biggest files in the working dir:"
+set +o pipefail
+du . | sort -nr | head -n100
+set -o pipefail
+echo