rust/src/ci/scripts/dump-environment.sh
2019-10-25 16:03:04 +02:00

19 lines
305 B
Bash
Executable file

#!/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