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`.
17
- # https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
18
- # https://circleci.com/blog/deep-diving-into-circleci-workspaces/
19
- var_workspace_location : &workspace_location ~/
20
-
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
15
# Executor Definitions
43
16
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
44
17
# **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
18
# (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
19
executors :
51
20
default-executor :
52
21
parameters :
53
22
resource_class :
54
23
type : string
55
24
default : medium
56
25
docker :
57
- - image : circleci/node:12.16.3
26
+ - image : circleci/node:12.16.3@sha256:8fe514dae7585bbee1c64bf5a6cd4dcdf393316b5c87565b47e31014872c8860
58
27
resource_class : << parameters.resource_class >>
59
28
working_directory : ~/ng
60
29
cloud-sdk :
61
30
description : The docker container to use when running gcp-gcs commands
62
31
docker :
63
- - image : google/cloud-sdk:alpine
32
+ - image : google/cloud-sdk:alpine@sha256:7d0cae28cb282b76f2d9babe278c63c910d54f0cceca7a65fdf6806e2b43882e
64
33
65
34
66
35
# Command Definitions
@@ -72,31 +41,6 @@ commands:
72
41
- attach_workspace :
73
42
at : *workspace_location
74
43
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
-
90
- install_java :
91
- description : Install java
92
- steps :
93
- - run :
94
- name : Install java
95
- command : |
96
- sudo apt-get update
97
- # Install java runtime
98
- sudo apt-get install default-jre
99
-
100
44
# Initializes the CI environment by setting up common environment variables.
101
45
init_environment :
102
46
description : Initializing environment (setting up variables)
@@ -117,7 +61,6 @@ commands:
117
61
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
118
62
git config --global url."ssh://[email protected] ".insteadOf "https://github.com" || true
119
63
git config --global gc.auto 0 || true
120
- - install_java
121
64
122
65
init_saucelabs_environment :
123
66
description : Sets up a domain that resolves to the local host.
@@ -195,7 +138,7 @@ jobs:
195
138
- run :
196
139
name : Running Yarn install
197
140
command : yarn install --frozen-lockfile --non-interactive
198
- # Yarn's requests sometimes take more than 10mins to complete.
141
+ # Yarn's requests sometimes take more than 45mins to complete.
199
142
no_output_timeout : 45m
200
143
- run : yarn grunt package
201
144
# Persist any changes at this point to be reused by further jobs.
@@ -210,8 +153,8 @@ jobs:
210
153
steps :
211
154
- custom_attach_workspace
212
155
- init_environment
213
- - run : yarn -s grunt ci-checks
214
- - run : yarn commitplease "${ CI_COMMIT_RANGE/.../..} "
156
+ - run : yarn grunt ci-checks
157
+ - run : yarn commitplease "$CI_COMMIT_RANGE"
215
158
- run : yarn grunt validate-angular-files
216
159
217
160
unit-test :
0 commit comments