1
- # Configuration file for https://circleci.com/gh/angular/angular
1
+ # Configuration file for https://circleci.com/gh/angular/angular.js
2
2
3
3
# Note: YAML anchors allow an object to be re-used, reducing duplication.
4
4
# The ampersand declares an alias for an object, then later the `<<: *name`
12
12
# https://circleci.com/docs/2.0/reusing-config/#getting-started-with-config-reuse
13
13
version : 2.1
14
14
15
- # Workspace initially persisted by the `setup` job, and then enhanced by `build-npm-packages` and
16
- # `build-ivy-npm-packages`.
15
+ # Workspace persisted by the `setup` job to share build artifacts with other jobs.
17
16
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
18
17
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
19
18
var_workspace_location : &workspace_location ~/
20
19
21
- # Filter to run a job on builds for pull requests only.
22
- var_only_on_pull_requests : &only_on_pull_requests
23
- filters :
24
- branches :
25
- only :
26
- - /pull\/\d+/
27
-
28
- # Filter to skip a job on builds for pull requests.
29
- var_skip_on_pull_requests : &skip_on_pull_requests
30
- filters :
31
- branches :
32
- ignore :
33
- - /pull\/\d+/
34
-
35
- # Filter to run a job on builds for the master branch only.
36
- var_only_on_master : &only_on_master
37
- filters :
38
- branches :
39
- only :
40
- - master
41
-
42
20
# Executor Definitions
43
21
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
44
22
# **NOTE 1**: Pin to exact images using an ID (SHA). See https://circleci.com/docs/2.0/circleci-images/#using-a-docker-image-id-to-pin-an-image-to-a-fixed-version.
45
23
# (Using the tag in not necessary when pinning by ID, but include it anyway for documentation purposes.)
46
- # **NOTE 2**: If you change the version of the docker images, also change the `cache_key` suffix.
47
- # **NOTE 3**: If you change the version of the `*-browsers` docker image, make sure the
48
- # `--versions.chrome` arg in `integration/bazel-schematics/test.sh` specifies a
49
- # ChromeDriver version that is compatible with the Chrome version in the image.
50
24
executors :
51
25
default-executor :
52
26
parameters :
53
27
resource_class :
54
28
type : string
55
29
default : medium
56
30
docker :
57
- - image : circleci/node:12.16.3
31
+ - image : circleci/node:12.16.3@sha256:8fe514dae7585bbee1c64bf5a6cd4dcdf393316b5c87565b47e31014872c8860
58
32
resource_class : << parameters.resource_class >>
59
33
working_directory : ~/ng
60
34
cloud-sdk :
61
35
description : The docker container to use when running gcp-gcs commands
62
36
docker :
63
- - image : google/cloud-sdk:alpine
37
+ - image : google/cloud-sdk:alpine@sha256:7d0cae28cb282b76f2d9babe278c63c910d54f0cceca7a65fdf6806e2b43882e
64
38
65
39
66
40
# Command Definitions
@@ -72,21 +46,7 @@ commands:
72
46
- attach_workspace :
73
47
at : *workspace_location
74
48
75
- # Install shared libs used by Chrome.
76
- install_chrome_libs :
77
- description : Install shared Chrome libs
78
- steps :
79
- - run :
80
- name : Install shared Chrome libs
81
- command : |
82
- sudo apt-get update
83
- # Install GTK+ graphical user interface (libgtk-3-0), advanced linux sound architecture (libasound2)
84
- # and network security service libraries (libnss3) & X11 Screen Saver extension library (libssx1)
85
- # which are dependendies of chrome & needed for karma & protractor headless chrome tests.
86
- # This is a very small install which takes around 7s in comparing to using the full
87
- # circleci/node:x.x.x-browsers image.
88
- sudo apt-get -y install libgtk-3-0 libasound2 libnss3 libxss1
89
-
49
+ # Java is needed for running the Closure Compiler (during the `minall` task).
90
50
install_java :
91
51
description : Install java
92
52
steps :
@@ -210,8 +170,8 @@ jobs:
210
170
steps :
211
171
- custom_attach_workspace
212
172
- init_environment
213
- - run : yarn -s grunt ci-checks
214
- - run : yarn commitplease "${ CI_COMMIT_RANGE/.../..} "
173
+ - run : yarn grunt ci-checks
174
+ - run : yarn commitplease "$CI_COMMIT_RANGE"
215
175
- run : yarn grunt validate-angular-files
216
176
217
177
unit-test :
0 commit comments