[hotfix] [build] Print cache info

Print the size of the Maven cache copied for each TravisCI job.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/c701a335
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/c701a335
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/c701a335

Branch: refs/heads/release-1.4
Commit: c701a335bef4caa9745498d1505e6ef46942d764
Parents: 77df20b
Author: Greg Hogan <[email protected]>
Authored: Wed Jan 10 14:07:57 2018 -0500
Committer: zentol <[email protected]>
Committed: Wed Jan 24 10:52:18 2018 +0100

----------------------------------------------------------------------
 tools/travis_mvn_watchdog.sh | 41 ++++++++++++++++++++++-----------------
 1 file changed, 23 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/c701a335/tools/travis_mvn_watchdog.sh
----------------------------------------------------------------------
diff --git a/tools/travis_mvn_watchdog.sh b/tools/travis_mvn_watchdog.sh
index 5edeb89..7c27392 100755
--- a/tools/travis_mvn_watchdog.sh
+++ b/tools/travis_mvn_watchdog.sh
@@ -186,6 +186,28 @@ ARTIFACTS_FILE=${TRAVIS_JOB_NUMBER}.tar.gz
 # FUNCTIONS
 # =============================================================================
 
+print_system_info() {
+       FOLD_ESCAPE="\x0d\x1b"
+       COLOR_ON="\x5b\x30\x4b\x1b\x5b\x33\x33\x3b\x31\x6d"
+       COLOR_OFF="\x1b\x5b\x30\x6d"
+
+       echo -e "travis_fold:start:cpu_info${FOLD_ESCAPE}${COLOR_ON}CPU 
information${COLOR_OFF}"
+       lscpu
+       echo -en "travis_fold:end:cpu_info${FOLD_ESCAPE}"
+
+       echo -e "travis_fold:start:mem_info${FOLD_ESCAPE}${COLOR_ON}Memory 
information${COLOR_OFF}"
+       cat /proc/meminfo
+       echo -en "travis_fold:end:mem_info${FOLD_ESCAPE}"
+
+       echo -e "travis_fold:start:disk_info${FOLD_ESCAPE}${COLOR_ON}Disk 
information${COLOR_OFF}"
+       df -hH
+       echo -en "travis_fold:end:disk_info${FOLD_ESCAPE}"
+
+       echo -e "travis_fold:start:cache_info${FOLD_ESCAPE}${COLOR_ON}Cache 
information${COLOR_OFF}"
+       du -s --si $HOME/.m2
+       echo -en "travis_fold:end:cache_info${FOLD_ESCAPE}"
+}
+
 upload_artifacts_s3() {
        echo "PRODUCED build artifacts."
 
@@ -436,24 +458,7 @@ WD_PID=$!
 
 echo "STARTED watchdog (${WD_PID})."
 
-
-# Print and fold CPU, memory, and filesystem info
-FOLD_ESCAPE="\x0d\x1b"
-COLOR_ON="\x5b\x30\x4b\x1b\x5b\x33\x33\x3b\x31\x6d"
-COLOR_OFF="\x1b\x5b\x30\x6d"
-
-echo -e "travis_fold:start:cpu_info${FOLD_ESCAPE}${COLOR_ON}CPU 
information${COLOR_OFF}"
-lscpu
-echo -en "travis_fold:end:cpu_info${FOLD_ESCAPE}"
-
-echo -e "travis_fold:start:mem_info${FOLD_ESCAPE}${COLOR_ON}Memory 
information${COLOR_OFF}"
-cat /proc/meminfo
-echo -en "travis_fold:end:mem_info${FOLD_ESCAPE}"
-
-echo -e "travis_fold:start:disk_info${FOLD_ESCAPE}${COLOR_ON}Disk 
information${COLOR_OFF}"
-df -hH
-echo -en "travis_fold:end:disk_info${FOLD_ESCAPE}"
-
+print_system_info
 
 # Make sure to be in project root
 cd $HERE/../

Reply via email to