about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-10 19:55:04 +0800
committerkennytm <kennytm@gmail.com>2018-03-10 19:57:03 +0800
commitc67e55338442071666da7fb310b064b8e31fbacb (patch)
treefd3ba8aa80a4b45817410ce6bdb79385f6d2390e
parentb8cd6e5d7b885d3af2832cbe4a684ce6e6cf3614 (diff)
Print /proc/cpuinfo and /proc/meminfo before starting to build.
-rwxr-xr-xsrc/ci/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 79300e08a7d..7ce50d5c200 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -91,11 +91,19 @@ make check-bootstrap
 travis_fold end check-bootstrap
 travis_time_finish
 
+# Display the CPU and memory information. This helps us know why the CI timing
+# is fluctuating.
+travis_fold start log-system-info
 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+    system_profiler SPHardwareDataType || true
+    sysctl hw || true
     ncpus=$(sysctl -n hw.ncpu)
 else
+    cat /proc/cpuinfo || true
+    cat /proc/meminfo || true
     ncpus=$(grep processor /proc/cpuinfo | wc -l)
 fi
+travis_fold end log-system-info
 
 if [ ! -z "$SCRIPT" ]; then
   sh -x -c "$SCRIPT"