blob: b9b7ec56cb555a3225323d2945966f747c787bdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 "CPU info:"
if [[ "${OSTYPE}" = "darwin"* ]]; then
system_profiler SPHardwareDataType || true
sysctl hw || true
else
cat /proc/cpuinfo || true
cat /proc/meminfo || true
fi
|