Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d81d2b4

Browse files
committed
chore(build): add jenkins_build.sh file
1 parent 427ee93 commit d81d2b4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

jenkins_build.sh

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
# Enable tracing and exit on first failure
4+
set -xe
5+
6+
7+
# Define reasonable set of browsers in case we are running manually from commandline
8+
if [[ -z "$BROWSERS" ]]
9+
then
10+
BROWSERS="Chrome,Firefox,Opera,/Users/jenkins/bin/safari.sh,/Users/jenkins/bin/ie8.sh,/Users/jenkins/bin/ie9.sh"
11+
fi
12+
13+
if [[ -z "$BROWSERS_E2E" ]]
14+
then
15+
BROWSERS_E2E="Chrome,Firefox,/Users/jenkins/bin/safari.sh"
16+
fi
17+
18+
19+
# CLEAN #
20+
rm -f angular.min.js.gzip.size
21+
rm -f angular.js.size
22+
23+
24+
# BUILD #
25+
npm install --color false
26+
grunt ci-checks package --no-color
27+
28+
29+
# UNIT TESTS #
30+
grunt test:unit --browsers $BROWSERS --reporters=dots,junit --no-colors --no-color
31+
32+
33+
# END TO END TESTS #
34+
grunt test:e2e --browsers $BROWSERS_E2E --reporters=dots,junit --no-colors --no-color
35+
36+
# Promises/A+ TESTS #
37+
grunt test:promises-aplus --no-color
38+
39+
40+
# CHECK SIZE #
41+
gzip -c < build/angular.min.js > build/angular.min.js.gzip
42+
echo "YVALUE=`ls -l build/angular.min.js | cut -d" " -f 8`" > angular.min.js.size
43+
echo "YVALUE=`ls -l build/angular.min.js.gzip | cut -d" " -f 8`" > angular.min.js.gzip.size

0 commit comments

Comments
 (0)