File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,8 @@ steps:
48
48
- bash : python src/ci/cpu-usage-over-time.py &> cpu-usage.csv &
49
49
displayName : " Collect CPU-usage statistics in the background"
50
50
51
- - bash : printenv | sort
52
- displayName : Show environment variables
53
-
54
- - bash : |
55
- set -e
56
- df -h
57
- du . | sort -nr | head -n100
58
- displayName : Show disk usage
59
- # FIXME: this hasn't been tested, but maybe it works on Windows? Should test!
60
- condition : and(succeeded(), ne(variables['Agent.OS'], 'Windows_NT'))
51
+ - bash : src/ci/scripts/dump-environment.sh
52
+ displayName : Show the current environment
61
53
62
54
- template : install-sccache.yml
63
55
- template : install-clang.yml
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments