[ARVADOS-DEV] updated: ebf8ab12ebbbdd4b4b317b1b14f1e65d67e381c3

git at public.curoverse.com git at public.curoverse.com
Wed Dec 3 10:40:22 EST 2014


Summary of changes:
 jenkins/run-docker-tests.sh | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

       via  ebf8ab12ebbbdd4b4b317b1b14f1e65d67e381c3 (commit)
      from  4d4d004399af1dc0a99d67893f818756a8d19a90 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ebf8ab12ebbbdd4b4b317b1b14f1e65d67e381c3
Author: Ward Vandewege <ward at curoverse.com>
Date:   Wed Dec 3 10:40:10 2014 -0500

    Add timing information to the docker tests.
    
    No issue #

diff --git a/jenkins/run-docker-tests.sh b/jenkins/run-docker-tests.sh
index 0b5148e..e0c2288 100755
--- a/jenkins/run-docker-tests.sh
+++ b/jenkins/run-docker-tests.sh
@@ -24,6 +24,14 @@ docker_push () {
   fi
 }
 
+timer_reset() {
+    t0=$SECONDS
+}
+
+timer() {
+    echo -n "$(($SECONDS - $t0))s"
+}
+
 # Sanity check
 if ! [[ -n "$WORKSPACE" ]]; then
   echo >&2
@@ -49,6 +57,8 @@ fi
 # DOCKER
 title "Starting docker build"
 
+timer_reset
+
 # clean up the docker build environment
 cd "$WORKSPACE"
 cd docker
@@ -68,10 +78,12 @@ if [[ "$ECODE" != "0" ]]; then
   EXITCODE=$(($EXITCODE + $ECODE))
 fi
 
-title "docker build complete"
+title "docker build complete (`timer`)"
 
 title "uploading images"
 
+timer_reset
+
 if [[ "$ECODE" == "0" ]]; then
   docker_push arvados/api
   docker_push arvados/compute
@@ -83,10 +95,12 @@ else
   title "upload arvados images SKIPPED because build failed"
 fi
 
-title "upload arvados images complete"
+title "upload arvados images complete (`timer`)"
 
 title "Starting docker java-bwa-samtools build"
 
+timer_reset
+
 ./build.sh java-bwa-samtools-image
 
 ECODE=$?
@@ -96,16 +110,17 @@ if [[ "$ECODE" != "0" ]]; then
   EXITCODE=$(($EXITCODE + $ECODE))
 fi
 
-title "docker build java-bwa-samtools complete"
+title "docker build java-bwa-samtools complete (`timer`)"
 
 title "upload arvados/jobs image"
 
+timer_reset
 if [[ "$ECODE" == "0" ]]; then
   docker_push arvados/jobs
 else
   title "upload arvados/jobs image SKIPPED because build failed"
 fi
 
-title "upload arvados/jobs image complete"
+title "upload arvados/jobs image complete (`timer`)"
 
 exit $EXITCODE

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list