@@ -24,7 +24,7 @@ install_dependency: &install_dependency
24
24
apk upgrade
25
25
apk add --no-cache jq py-pip sudo
26
26
sudo pip install awscli --upgrade
27
-
27
+
28
28
install_deploysuite : &install_deploysuite
29
29
name : Installation of install_deploysuite.
30
30
command : |
@@ -35,16 +35,17 @@ install_deploysuite: &install_deploysuite
35
35
restore_cache_settings_for_build : &restore_cache_settings_for_build
36
36
key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
37
37
38
- save_cache_settings : &save_cache_settings
39
- key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
38
+ save_cache_settings : &save_cache_settings
39
+ key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
40
40
paths :
41
- - node_modules
41
+ - node_modules
42
42
43
43
build_docker_image : &build_docker_image
44
44
name : Build of Docker image
45
45
command : |
46
46
source buildenvvar
47
47
./build.sh
48
+ no_output_timeout : 20m
48
49
jobs :
49
50
# Build & Deploy against development backend
50
51
" build-dev " :
@@ -58,11 +59,11 @@ jobs:
58
59
# Restoration of node_modules from cache.
59
60
- restore_cache : *restore_cache_settings_for_build
60
61
# Build of Docker image.
61
- - run :
62
+ - run :
62
63
name : " configuring environment"
63
64
command : |
64
65
./awsconfiguration.sh DEV
65
- ./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
66
+ ./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
66
67
- run : *build_docker_image
67
68
# Caching node modules.
68
69
- save_cache : *save_cache_settings
@@ -85,11 +86,11 @@ jobs:
85
86
- run : *install_deploysuite
86
87
# Restoration of node_modules from cache.
87
88
- restore_cache : *restore_cache_settings_for_build
88
- - run :
89
+ - run :
89
90
name : " configuring environment"
90
91
command : |
91
92
./awsconfiguration.sh DEV
92
- ./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
93
+ ./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
93
94
# Build of Docker image.
94
95
- run : *build_docker_image
95
96
# Caching node modules.
@@ -113,11 +114,11 @@ jobs:
113
114
- run : *install_deploysuite
114
115
# Restoration of node_modules from cache.
115
116
- restore_cache : *restore_cache_settings_for_build
116
- - run :
117
+ - run :
117
118
name : " configuring environment"
118
119
command : |
119
120
./awsconfiguration.sh DEV
120
- ./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121
+ ./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121
122
# Build of Docker image.
122
123
- run : *build_docker_image
123
124
# Caching node modules.
@@ -141,7 +142,7 @@ jobs:
141
142
- run : *install_deploysuite
142
143
# Restoration of node_modules from cache.
143
144
- restore_cache : *restore_cache_settings_for_build
144
- - run :
145
+ - run :
145
146
name : " configuring environment"
146
147
command : |
147
148
./awsconfiguration.sh PROD
@@ -157,7 +158,7 @@ jobs:
157
158
source awsenvconf
158
159
source buildenvvar
159
160
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
160
-
161
+
161
162
# Build & Deploy against prod api backend
162
163
" build-prod-staging " :
163
164
<< : *defaults
@@ -169,7 +170,7 @@ jobs:
169
170
- run : *install_deploysuite
170
171
# Restoration of node_modules from cache.
171
172
- restore_cache : *restore_cache_settings_for_build
172
- - run :
173
+ - run :
173
174
name : " configuring environment"
174
175
command : |
175
176
./awsconfiguration.sh PROD
@@ -190,7 +191,7 @@ jobs:
190
191
--header "Circle-Token: ${CIRCLE_TOKEN}" \
191
192
--header 'content-type: application/json' \
192
193
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
193
-
194
+
194
195
# Build & Deploy against production backend
195
196
" build-prod " :
196
197
<< : *defaults
@@ -202,15 +203,15 @@ jobs:
202
203
- run : *install_deploysuite
203
204
# Restoration of node_modules from cache.
204
205
- restore_cache : *restore_cache_settings_for_build
205
- - run :
206
+ - run :
206
207
name : " configuring environment"
207
208
command : |
208
209
./awsconfiguration.sh PROD
209
210
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
210
211
# Build of Docker image.
211
212
- run : *build_docker_image
212
213
# Caching node modules.
213
- - save_cache : *save_cache_settings
214
+ - save_cache : *save_cache_settings
214
215
# Deployment.
215
216
- deploy :
216
217
name : Running MasterScript
@@ -223,19 +224,19 @@ jobs:
223
224
--header "Circle-Token: ${CIRCLE_TOKEN}" \
224
225
--header 'content-type: application/json' \
225
226
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
226
-
227
+
227
228
# Automated Smoke Testing against Staging
228
229
Smoke-Testing-On-Staging :
229
230
<< : *defaults
230
- steps :
231
+ steps :
231
232
# Initialization.
232
233
- checkout
233
234
- setup_remote_docker
234
235
- run : *install_dependency
235
236
- run : *install_deploysuite
236
237
# Restoration of node_modules from cache.
237
238
- restore_cache : *restore_cache_settings_for_build
238
- - run :
239
+ - run :
239
240
name : " configuring environment"
240
241
command : |
241
242
./awsconfiguration.sh PROD
@@ -249,19 +250,19 @@ jobs:
249
250
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
250
251
- store_artifacts :
251
252
path : ./automated-smoke-test/test-results
252
-
253
+
253
254
# Automated Smoke Testing against Production
254
255
Smoke-Testing-On-Production :
255
256
<< : *defaults
256
- steps :
257
+ steps :
257
258
# Initialization.
258
259
- checkout
259
260
- setup_remote_docker
260
261
- run : *install_dependency
261
262
- run : *install_deploysuite
262
263
# Restoration of node_modules from cache.
263
264
- restore_cache : *restore_cache_settings_for_build
264
- - run :
265
+ - run :
265
266
name : " configuring environment"
266
267
command : |
267
268
./awsconfiguration.sh PROD
@@ -286,13 +287,19 @@ jobs:
286
287
- checkout
287
288
- restore_cache :
288
289
key : test-node-modules-{{ checksum "package-lock.json" }}
289
- - run : npm install
290
+ - run :
291
+ name : Config Git
292
+ command : git config --global url."https://git@".insteadOf git://
293
+ - run :
294
+ name : App npm install
295
+ command : npm install
296
+ no_output_timeout : 20m
290
297
- save_cache :
291
298
key : test-node-modules-{{ checksum "package-lock.json" }}
292
299
paths :
293
300
- node_modules
294
301
- run : npm test
295
-
302
+
296
303
Performance-Testing :
297
304
docker :
298
305
# specify the version you desire here
@@ -330,7 +337,7 @@ jobs:
330
337
331
338
- store_artifacts :
332
339
path : target/jmeter/reports
333
-
340
+
334
341
workflows :
335
342
version : 2
336
343
Build :
@@ -343,16 +350,17 @@ workflows:
343
350
branches :
344
351
only :
345
352
- develop
353
+ - reskin-profile
346
354
# This is alternate dev env for parallel testing
347
355
- " build-test " :
348
- context : org-global
356
+ context : org-global
349
357
filters :
350
358
branches :
351
359
only :
352
- - nursoltan-s: veterans-http-headers
360
+ - veterans-http-headers
353
361
# This is alternate dev env for parallel testing
354
362
- " build-qa " :
355
- context : org-global
363
+ context : org-global
356
364
filters :
357
365
branches :
358
366
only :
@@ -363,22 +371,23 @@ workflows:
363
371
filters :
364
372
branches :
365
373
only :
366
- - free
374
+ - reskin-profile
367
375
# This is stage env for production QA releases
368
376
- " build-prod-staging " :
369
- context : org-global
377
+ context : org-global
370
378
filters : &filters-staging
371
379
branches :
372
380
only :
373
- - develop
374
- # Production builds are exectuted
381
+ - fix-security-headers
382
+ - tco23-BS-comps
383
+ # Production builds are exectuted
375
384
# when PR is merged to the master
376
385
# Don't change anything in this configuration
377
- # That might trigger wrong branch to be
386
+ # That might trigger wrong branch to be
378
387
# deployed on the production
379
388
# master branch.
380
389
- " build-prod " :
381
- context : org-global
390
+ context : org-global
382
391
filters : &filters-prod
383
392
branches :
384
393
only :
0 commit comments