You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/02/13 02:31:26 UTC

[04/11] git commit: [flex-sdk] [refs/heads/release4.12.0] - - added initial setting report for easier overview of type of run - added run duration calculation to run report

- added initial setting report for easier overview of type of run
- added run duration calculation to run report

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/42ebf3c2
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/42ebf3c2
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/42ebf3c2

Branch: refs/heads/release4.12.0
Commit: 42ebf3c2747beef4b7c8f92a12e6ce3b4119b683
Parents: 45ac3c7
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Sun Feb 9 12:14:03 2014 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Sun Feb 9 12:14:03 2014 +0100

----------------------------------------------------------------------
 mustella/jenkins.sh | 71 ++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 59 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/42ebf3c2/mustella/jenkins.sh
----------------------------------------------------------------------
diff --git a/mustella/jenkins.sh b/mustella/jenkins.sh
index 0a7cd91..adca869 100755
--- a/mustella/jenkins.sh
+++ b/mustella/jenkins.sh
@@ -124,15 +124,7 @@ END
 
 
 
-# ANT
-ant -f ../build.xml clean -Dbuild.noprompt=true
-ant -f ../build.xml main -Dbuild.noprompt=true
-ant -f ../build.xml other.locales -Dbuild.noprompt=true
-LOG=$LOG"- Ran 'clean', 'main' and 'other.locales' ant targets to prepare the SDK for testing"$'\n'
-
-
-
-# RUN
+# RUN SETTINGS
 
 RUN_TYPE="main"
 while [ "$1" != "" ]; do
@@ -168,6 +160,48 @@ END
   TEST_SET=tests/mobile
 fi
 
+
+
+# SETTINGS REPORT
+START=$(date +"%m-%d-%Y %H:%M")
+START_TIME=$(date +"%s")
+
+cat <<END
+
+
+
+============ JENKINS MUSTELLA SETTINGS REPORT ============
+
+Date/Time: $START
+
+Settings:
+player.version = $FLASH_VERSION
+air.version = $AIR_VERSION
+FLASHPLAYER_DEBUGGER = $FLASHPLAYER_DEBUGGER
+AIR_HOME = $AIR_HOME
+
+Build: 
+  type = $RUN_TYPE
+  command = $TEST_COMMAND
+  set = $TEST_SET
+
+=====================================================
+
+
+
+END
+
+
+
+# ANT
+ant -f ../build.xml clean -Dbuild.noprompt=true
+ant -f ../build.xml main -Dbuild.noprompt=true
+ant -f ../build.xml other.locales -Dbuild.noprompt=true
+LOG=$LOG"- Ran 'clean', 'main' and 'other.locales' ant targets to prepare the SDK for testing"$'\n'
+
+
+
+# RUN
 sh ./mini_run.sh $TEST_COMMAND $TEST_SET 
 
 LOG=$LOG"- Ran Mustella on the SDK with these parameters: '$TEST_COMMAND $TEST_SET'"$'\n'
@@ -193,15 +227,28 @@ fi
 
 
 
-# REPORT
-NOW=$(date +"%m-%d-%Y %H:%M")
+# RUN REPORT
+END=$(date +"%m-%d-%Y %H:%M")
+END_TIME=$(date +"%s")
+
+DURATION=$(($END_TIME - $START_TIME))
+
+DAYS=$(($DURATION / 60 / 60 / 24))
+HOURS=$((($DURATION / 60 / 60) - ($DAYS * 24)))
+MINUTES=$((($DURATION / 60) - (($DAYS * 24 + $HOURS) * 60)))
+SECONDS=$((($DURATION) - ((($DAYS * 24 + $HOURS) * 60 + $MINUTES) * 60)))
+
+DURATION_STR="$DAYS days $HOURS hours $MINUTES mins $SECONDS seconds"
+
 cat <<END
 
 
 
 ============ JENKINS MUSTELLA RUN REPORT ============
 
-Date and time: $NOW
+Date/Time: $END
+
+Run duration: $DURATION_STR
 
 Settings:
 player.version = $FLASH_VERSION