diff options
| author | Igor Minar | 2013-08-30 23:20:30 +0200 | 
|---|---|---|
| committer | Igor Minar | 2013-08-30 23:20:30 +0200 | 
| commit | d81d2b41abc5484fcaeb1c61289ad1796e6f0898 (patch) | |
| tree | b6fd4b8d7ebf49a2fe2280698ef8bd06611eaa37 /jenkins_build.sh | |
| parent | 427ee93f11d0ef64b8844f9b43b2a0f21f2be2cb (diff) | |
| download | angular.js-d81d2b41abc5484fcaeb1c61289ad1796e6f0898.tar.bz2 | |
chore(build): add jenkins_build.sh file
Diffstat (limited to 'jenkins_build.sh')
| -rwxr-xr-x | jenkins_build.sh | 43 | 
1 files changed, 43 insertions, 0 deletions
| diff --git a/jenkins_build.sh b/jenkins_build.sh new file mode 100755 index 00000000..fd0f424d --- /dev/null +++ b/jenkins_build.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Enable tracing and exit on first failure +set -xe + + +# Define reasonable set of browsers in case we are running manually from commandline +if [[ -z "$BROWSERS" ]] +then +  BROWSERS="Chrome,Firefox,Opera,/Users/jenkins/bin/safari.sh,/Users/jenkins/bin/ie8.sh,/Users/jenkins/bin/ie9.sh" +fi + +if [[ -z "$BROWSERS_E2E" ]] +then +  BROWSERS_E2E="Chrome,Firefox,/Users/jenkins/bin/safari.sh" +fi + + +# CLEAN # +rm -f angular.min.js.gzip.size +rm -f angular.js.size + + +# BUILD # +npm install --color false +grunt ci-checks package --no-color + + +# UNIT TESTS # +grunt test:unit --browsers $BROWSERS --reporters=dots,junit --no-colors --no-color + + +# END TO END TESTS # +grunt test:e2e --browsers $BROWSERS_E2E --reporters=dots,junit --no-colors --no-color + +# Promises/A+ TESTS # +grunt test:promises-aplus --no-color + + +# CHECK SIZE # +gzip -c < build/angular.min.js > build/angular.min.js.gzip +echo "YVALUE=`ls -l build/angular.min.js | cut -d" " -f 8`" > angular.min.js.size +echo "YVALUE=`ls -l build/angular.min.js.gzip | cut -d" " -f 8`" > angular.min.js.gzip.size | 
