@@ -47,7 +47,7 @@ build_docker_image: &build_docker_image
47
47
./build.sh
48
48
jobs :
49
49
# Build & Deploy against development backend
50
- deployDev :
50
+ " build-dev " :
51
51
<< : *defaults
52
52
steps :
53
53
# Initialization.
73
73
source awsenvconf
74
74
source buildenvvar
75
75
./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp
76
+
76
77
# Build & Deploy against testing backend
77
- deployTest :
78
+ " build-test " :
78
79
<< : *defaults
79
80
steps :
80
81
# Initialization.
@@ -100,8 +101,9 @@ jobs:
100
101
source awsenvconf
101
102
source buildenvvar
102
103
./master_deploy.sh -d ECS -e DEV -t latest -s test_communityapp_taskvar -i communityapp
104
+
103
105
# Build & Deploy against testing backend
104
- deployQA :
106
+ " build-qa " :
105
107
<< : *defaults
106
108
steps :
107
109
# Initialization.
@@ -127,8 +129,9 @@ jobs:
127
129
source awsenvconf
128
130
source buildenvvar
129
131
./master_deploy.sh -d ECS -e DEV -t latest -s qa_communityapp_taskvar -i communityapp
132
+
130
133
# Build & Deploy against prod api backend
131
- deployBeta :
134
+ " build-prod-beta " :
132
135
<< : *defaults
133
136
steps :
134
137
# Initialization.
@@ -156,7 +159,7 @@ jobs:
156
159
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
157
160
158
161
# Build & Deploy against prod api backend
159
- deployStag :
162
+ " build-prod-staging " :
160
163
<< : *defaults
161
164
steps :
162
165
# Initialization.
@@ -189,7 +192,7 @@ jobs:
189
192
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
190
193
191
194
# Build & Deploy against production backend
192
- deployProd :
195
+ " build-prod " :
193
196
<< : *defaults
194
197
steps :
195
198
# Initialization.
@@ -220,6 +223,8 @@ jobs:
220
223
--header "Circle-Token: ${CIRCLE_TOKEN}" \
221
224
--header 'content-type: application/json' \
222
225
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
226
+
227
+ # Automated Smoke Testing against Staging
223
228
Smoke-Testing-On-Staging :
224
229
<< : *defaults
225
230
steps :
@@ -244,6 +249,8 @@ jobs:
244
249
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
245
250
- store_artifacts :
246
251
path : /automated-smoke-test/test-results
252
+
253
+ # Automated Smoke Testing against Production
247
254
Smoke-Testing-On-Production :
248
255
<< : *defaults
249
256
steps :
@@ -266,6 +273,7 @@ jobs:
266
273
source awsenvconf
267
274
source buildenvvar
268
275
./automated-smoke-test/smoketest.sh automation-config-prod.json prod
276
+
269
277
# Test job for the cases when we do not need deployment. It just rapidly
270
278
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
271
279
# Jest unit-tests).
@@ -327,49 +335,49 @@ workflows:
327
335
when : << pipeline.parameters.run_basedeployment >>
328
336
jobs :
329
337
# Development builds are executed on "new-develop" branch only.
330
- - deployDev :
338
+ - " build-dev " :
331
339
context : org-global
332
340
filters :
333
341
branches :
334
342
only :
335
- - free
343
+ - develop
336
344
# This is alternate dev env for parallel testing
337
- - deployTest :
345
+ - " build-test " :
338
346
context : org-global
339
347
filters :
340
348
branches :
341
349
only :
342
350
- free
343
351
# This is alternate dev env for parallel testing
344
- - deployQA :
352
+ - " build-qa " :
345
353
context : org-global
346
354
filters :
347
355
branches :
348
356
only :
349
357
- free
350
358
# This is beta env for production soft releases
351
- - deployBeta :
359
+ - " build-prod-beta " :
352
360
context : org-global
353
361
filters :
354
362
branches :
355
363
only :
356
364
- thrive-bug-fixes
357
365
# This is stage env for production QA releases
358
- - deployStag :
366
+ - " build-prod-staging " :
359
367
context : org-global
360
- filters :
368
+ filters : &filters-staging
361
369
branches :
362
370
only :
363
- - free
371
+ - develop
364
372
# Production builds are exectuted
365
373
# when PR is merged to the master
366
374
# Don't change anything in this configuration
367
375
# That might trigger wrong branch to be
368
376
# deployed on the production
369
377
# master branch.
370
- - deployProd :
378
+ - " build-prod " :
371
379
context : org-global
372
- filters :
380
+ filters : &filters-prod
373
381
branches :
374
382
only :
375
383
- master
@@ -382,7 +390,9 @@ workflows:
382
390
- develop
383
391
384
392
Smoke Testing :
385
- when : << pipeline.parameters.run_smoketesting >>
393
+ when :
394
+ and :
395
+ - << pipeline.parameters.run_smoketesting >>
386
396
jobs :
387
397
- Hold [Smoke-Testing] :
388
398
type : approval
@@ -391,17 +401,13 @@ workflows:
391
401
requires :
392
402
- Hold [Smoke-Testing]
393
403
filters :
394
- branches :
395
- only :
396
- - develop
404
+ << : *filters-staging
397
405
- Smoke-Testing-On-Production :
398
406
context : org-global
399
407
requires :
400
408
- Hold [Smoke-Testing]
401
409
filters :
402
- branches :
403
- only :
404
- - master
410
+ << : *filters-prod
405
411
406
412
Performance Testing :
407
413
when : << pipeline.parameters.run_performancetesting >>
0 commit comments