]> git.lizzy.rs Git - rust.git/commitdiff
Print /proc/cpuinfo and /proc/meminfo before starting to build.
authorkennytm <kennytm@gmail.com>
Sat, 10 Mar 2018 11:55:04 +0000 (19:55 +0800)
committerkennytm <kennytm@gmail.com>
Sat, 10 Mar 2018 11:57:03 +0000 (19:57 +0800)
src/ci/run.sh

index 79300e08a7d36f7c866f1bdc50f77a728f4ce865..7ce50d5c2000bb0d7a1b706dd03afc27ad06552f 100755 (executable)
@@ -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"