Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: third_party/pkg/angular/scripts/travis/build.sh

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 set -evx 3 set -e
4 . ./scripts/env.sh 4 . "$(dirname $0)/../env.sh"
5 5
6 # run io tests 6 echo '==========='
7 dart -c test/io/all.dart 7 echo '== BUILD =='
8 echo '==========='
8 9
9 ./scripts/generate-expressions.sh 10 SIZE_TOO_BIG_COUNT=0
10 ./scripts/analyze.sh
11 11
12 ./node_modules/jasmine-node/bin/jasmine-node ./scripts/changelog/ 12 function checkSize() {
13 file=$1
14 if [[ ! -e $file ]]; then
15 echo Could not find file: $file
16 SIZE_TOO_BIG_COUNT=$((SIZE_TOO_BIG_COUNT + 1));
17 else
18 expected=$2
19 actual=`cat $file | gzip | wc -c`
20 if (( 100 * $actual >= 105 * $expected )); then
21 echo ${file} is too large expecting ${expected} was ${actual}.
22 SIZE_TOO_BIG_COUNT=$((SIZE_TOO_BIG_COUNT + 1));
23 fi
24 fi
25 }
13 26
14 ./node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ && 27 if [[ $TESTS == "dart2js" ]]; then
15 node "node_modules/karma/bin/karma" start karma.conf \ 28 # skip auxiliary tests if we are only running dart2js
29 echo '------------------------'
30 echo '-- BUILDING: examples --'
31 echo '------------------------'
32
33 if [[ $CHANNEL == "DEV" ]]; then
34 $DART "$NGDART_BASE_DIR/bin/pub_build.dart" -p example \
35 -e "$NGDART_BASE_DIR/example/expected_warnings.json"
36 else
37 ( cd example; pub build )
38 fi
39
40 (
41 echo '-----------------------------------'
42 echo '-- BUILDING: verify dart2js size --'
43 echo '-----------------------------------'
44 cd $NGDART_BASE_DIR/example
45 checkSize build/web/animation.dart.js 208021
46 checkSize build/web/bouncing_balls.dart.js 202325
47 checkSize build/web/hello_world.dart.js 199919
48 checkSize build/web/todo.dart.js 203121
49 if ((SIZE_TOO_BIG_COUNT > 0)); then
50 exit 1
51 else
52 echo Generated JavaScript file size check OK.
53 fi
54 )
55 else
56 echo '--------------'
57 echo '-- TEST: io --'
58 echo '--------------'
59 $DART --checked $NGDART_BASE_DIR/test/io/all.dart
60
61 echo '----------------------------'
62 echo '-- TEST: symbol extractor --'
63 echo '----------------------------'
64 $DART --checked $NGDART_BASE_DIR/test/tools/symbol_inspector/symbol_inspector_ spec.dart
65
66 $NGDART_SCRIPT_DIR/generate-expressions.sh
67 $NGDART_SCRIPT_DIR/analyze.sh
68
69 echo '-----------------------'
70 echo '-- TEST: transformer --'
71 echo '-----------------------'
72 $DART --checked $NGDART_BASE_DIR/test/tools/transformer/all.dart
73
74 echo '---------------------'
75 echo '-- TEST: changelog --'
76 echo '---------------------'
77 $NGDART_BASE_DIR/node_modules/jasmine-node/bin/jasmine-node \
78 $NGDART_SCRIPT_DIR/changelog/;
79
80 (
81 echo '----------------'
82 echo '-- TEST: perf --'
83 echo '----------------'
84 cd $NGDART_BASE_DIR/perf
85 $PUB install
86
87 for file in *_perf.dart; do
88 echo ======= $file ========
89 $DART $file
90 done
91 )
92 fi
93
94 BROWSERS=Dartium,ChromeNoSandbox,FireFox
95 if [[ $TESTS == "dart2js" ]]; then
96 BROWSERS=ChromeNoSandbox,Firefox;
97 elif [[ $TESTS == "vm" ]]; then
98 BROWSERS=Dartium;
99 fi
100
101 echo '-----------------------'
102 echo '-- TEST: AngularDart --'
103 echo '-----------------------'
104 echo BROWSER=$BROWSERS
105 $NGDART_BASE_DIR/node_modules/jasmine-node/bin/jasmine-node playback_middleware/ spec/ &&
106 node "node_modules/karma/bin/karma" start karma.conf \
16 --reporters=junit,dots --port=8765 --runner-port=8766 \ 107 --reporters=junit,dots --port=8765 --runner-port=8766 \
17 --browsers=Dartium,ChromeNoSandbox --single-run --no-colors 108 --browsers=$BROWSERS --single-run --no-colors
18 109
19 ./scripts/generate-documentation.sh 110 if [[ $TESTS != "dart2js" ]]; then
20 111 $NGDART_SCRIPT_DIR/generate-documentation.sh;
112 fi
OLDNEW
« no previous file with comments | « third_party/pkg/angular/scripts/test-expression-extractor.sh ('k') | third_party/pkg/angular/scripts/travis/install.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698