@@ -203,6 +203,51 @@ jobs:
203
203
source awsenvconf
204
204
source buildenvvar
205
205
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp
206
+
207
+ " smoke-test-on-staging " :
208
+ << : *defaults
209
+ steps :
210
+ # Initialization.
211
+ - checkout
212
+ - setup_remote_docker
213
+ - run : *install_dependency
214
+ - run : *install_deploysuite
215
+ # Restoration of node_modules from cache.
216
+ - restore_cache : *restore_cache_settings_for_build
217
+ - run :
218
+ name : " configuring environment"
219
+ command : |
220
+ ./awsconfiguration.sh PROD
221
+ ./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar
222
+ - run :
223
+ name : " Run automation"
224
+ command : |
225
+ source awsenvconf
226
+ source buildenvvar
227
+ ./automated-smoke-test/smoketest.sh automation-config-staging.json prod
228
+
229
+ " smoke-test-on-production " :
230
+ << : *defaults
231
+ steps :
232
+ # Initialization.
233
+ - checkout
234
+ - setup_remote_docker
235
+ - run : *install_dependency
236
+ - run : *install_deploysuite
237
+ # Restoration of node_modules from cache.
238
+ - restore_cache : *restore_cache_settings_for_build
239
+ - run :
240
+ name : " configuring environment"
241
+ command : |
242
+ ./awsconfiguration.sh PROD
243
+ ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
244
+ - run :
245
+ name : " Run automation"
246
+ command : |
247
+ source awsenvconf
248
+ source buildenvvar
249
+ ./automated-smoke-test/smoketest.sh automation-config-prod.json prod
250
+
206
251
# Test job for the cases when we do not need deployment. It just rapidly
207
252
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
208
253
# Jest unit-tests).
@@ -233,13 +278,6 @@ workflows:
233
278
- develop
234
279
- develop_automation
235
280
- ci-manual-approval
236
- post-steps :
237
- - run :
238
- name : Run automation
239
- command : |
240
- source awsenvconf
241
- source buildenvvar
242
- ./automated-smoke-test/smoketest.sh automation-config-dev.json dev
243
281
- " smoke-testing " :
244
282
type : approval
245
283
requires :
@@ -267,14 +305,20 @@ workflows:
267
305
- free
268
306
# This is stage env for production QA releases
269
307
- " build-prod-staging " :
270
- context : org-global
271
- requires :
272
- - smoke-testing
308
+ context : org-global
273
309
filters :
274
310
branches :
275
311
only :
276
312
- develop
277
- - ci-manual-approval
313
+ - develop-approval-patch-1
314
+ - " approve-smoke-test-on-staging " :
315
+ type : approval
316
+ requires :
317
+ - build-prod-staging
318
+ - " smoke-test-on-staging " :
319
+ context : org-global
320
+ requires :
321
+ - approve-smoke-test-on-staging
278
322
# Production builds are exectuted
279
323
# when PR is merged to the master
280
324
# Don't change anything in this configuration
@@ -287,6 +331,14 @@ workflows:
287
331
branches :
288
332
only :
289
333
- master
334
+ - " approve-smoke-test-on-production " :
335
+ type : approval
336
+ requires :
337
+ - build-prod
338
+ - " smoke-test-on-production " :
339
+ context : org-global
340
+ requires :
341
+ - approve-smoke-test-on-production
290
342
# Simple testing is executed for any branch other than "develop" and
291
343
# "master".
292
344
- test :
0 commit comments