]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/dump-environment.sh
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / ci / scripts / dump-environment.sh
1 #!/bin/bash
2 # This script dumps information about the build environment to stdout.
3
4 set -euo pipefail
5 IFS=$'\n\t'
6
7 echo "environment variables:"
8 printenv | sort
9 echo
10
11 echo "disk usage:"
12 df -h
13 echo
14
15 echo "biggest files in the working dir:"
16 set +o pipefail
17 du . | sort -nr | head -n100
18 set -o pipefail
19 echo