diff options
| author | Vojta Jina | 2013-12-11 09:56:06 -0800 |
|---|---|---|
| committer | Vojta Jina | 2013-12-11 10:12:18 -0800 |
| commit | 8864e54f1f94883f3e22d7ce7ed87a699467a217 (patch) | |
| tree | 256453f7e9ac9c8460be80d751af14b62e3f79f7 /scripts | |
| parent | dc4df931778a374f1fb3c8af7545733c09b9c098 (diff) | |
| download | angular.js-8864e54f1f94883f3e22d7ce7ed87a699467a217.tar.bz2 | |
chore(scripts): refactor travis scripts
Refactoring so that it's easier to use both SL/BS just depending on a global switch.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/travis/build.sh | 16 | ||||
| -rwxr-xr-x | scripts/travis/print_logs.sh | 11 | ||||
| -rwxr-xr-x | scripts/travis/wait_for_browser_provider.sh | 7 |
3 files changed, 34 insertions, 0 deletions
diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh new file mode 100755 index 00000000..6467bc1a --- /dev/null +++ b/scripts/travis/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev` + +if [ $JOB = "unit" ]; then + grunt ci-checks + grunt test:docgen + grunt test:promises-aplus + grunt test:unit --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots +elif [ $JOB = "e2e" ]; then + grunt test:e2e --browsers SL_Chrome --reporters dots +else + echo "Unknown job type. Please set JOB=unit or JOB=e2e." +fi diff --git a/scripts/travis/print_logs.sh b/scripts/travis/print_logs.sh new file mode 100755 index 00000000..ec612ca1 --- /dev/null +++ b/scripts/travis/print_logs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +LOG_FILES=$LOGS_DIR/* + +for FILE in $LOG_FILES; do + echo -e "\n\n\n" + echo "================================================================================" + echo " $FILE" + echo "================================================================================" + cat $FILE +done diff --git a/scripts/travis/wait_for_browser_provider.sh b/scripts/travis/wait_for_browser_provider.sh new file mode 100755 index 00000000..1e8157c2 --- /dev/null +++ b/scripts/travis/wait_for_browser_provider.sh @@ -0,0 +1,7 @@ +#!/bin/bash + + +# Wait for Connect to be ready before exiting +while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do + sleep .5 +done |
