File tree 4 files changed +41
-1
lines changed
4 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 14
14
# `com_github_bazelbuild_buildtools` in the `/WORKSPACE` file.
15
15
var_1 : &docker_image angular/ngcontainer:0.3.3
16
16
var_2 : &cache_key angular_devkit-{{ checksum "yarn.lock" }}-0.3.3-2
17
+ var_3 : &benchmark_aio_cache_key angular_devkit-benchmark-aio{{ checksum "benchmark/aio/angular/aio/yarn.lock" }}-0.3.3-2
17
18
18
19
# Settings common to each job
19
20
anchor_1 : &defaults
@@ -30,6 +31,8 @@ anchor_3: &root_package_lock_key
30
31
key : *cache_key
31
32
anchor_4 : &attach_options
32
33
at : .
34
+ anchor_5 : &benchmark_aio_package_lock_key
35
+ key : *benchmark_aio_cache_key
33
36
34
37
# Job definitions
35
38
version : 2
93
96
- attach_workspace : *attach_options
94
97
- run : npm run admin -- build
95
98
99
+ benchmark :
100
+ << : *defaults
101
+ steps :
102
+ - attach_workspace : *attach_options
103
+ - restore_cache : *benchmark_aio_package_lock_key
104
+ - run : yarn admin -- build --local
105
+ - run : npm install --global ./dist/@angular-devkit_benchmark.tgz
106
+ - run : cd benchmark/aio && yarn initialize
107
+ - run : cd benchmark/aio && yarn benchmark
108
+ - save_cache :
109
+ << : *benchmark_aio_package_lock_key
110
+ paths :
111
+ - benchmark/aio/angular/node_modules
112
+ - benchmark/aio/angular/aio/node_modules
113
+
96
114
build-bazel :
97
115
<< : *defaults
98
116
resource_class : large
@@ -153,6 +171,9 @@ workflows:
153
171
- e2e-cli :
154
172
requires :
155
173
- build
174
+ - benchmark :
175
+ requires :
176
+ - build
156
177
- snapshot_publish :
157
178
requires :
158
179
- test
Original file line number Diff line number Diff line change
1
+ angular /
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " aio-benchmark" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " " ,
5
+ "main" : " index.js" ,
6
+ "scripts" : {
7
+ "initialize" : " yarn clone && yarn setup && yarn update" ,
8
+ "clone" : " (git clone https://github.com/angular/angular || true) && cd angular && git fetch origin && git reset --hard dd2a650c3455f3bc0a88f8181758a84aacb25fea" ,
9
+ "setup" : " cd angular && yarn && cd aio && yarn && yarn setup" ,
10
+ "//" : " Shouldn't need to install the package twice, but the first install seems to leave two @ngtools/webpack installs around." ,
11
+ "update" : " cd angular/aio && yarn add ../../../../dist/@angular-devkit_build-angular.tgz --dev && yarn add ../../../../dist/_angular-devkit_build-angular.tgz --dev" ,
12
+ "benchmark" : " cd angular/aio && benchmark --verbose -- yarn ~~build --configuration=stable"
13
+ },
14
+ "keywords" : [],
15
+ "author" : " " ,
16
+ "license" : " ISC"
17
+ }
Original file line number Diff line number Diff line change 64
64
" packages/schematics/*/*/*files/**/*" ,
65
65
" tmp/**/*" ,
66
66
" scripts/patches/**/*" ,
67
- " tests/**/*"
67
+ " tests/**/*" ,
68
+ " benchmark/**/*" ,
68
69
]
69
70
}
You can’t perform that action at this time.
0 commit comments