Skip to content

Commit 141adfc

Browse files
committed
ci: added prod job
1 parent 23c1518 commit 141adfc

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

.circleci/config.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,29 @@ jobs:
225225
source awsenvconf
226226
source buildenvvar
227227
./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+
228251
# Test job for the cases when we do not need deployment. It just rapidly
229252
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
230253
# Jest unit-tests).
@@ -255,13 +278,6 @@ workflows:
255278
- develop
256279
- develop_automation
257280
- ci-manual-approval
258-
post-steps:
259-
- run:
260-
name: Run automation
261-
command: |
262-
source awsenvconf
263-
source buildenvvar
264-
./automated-smoke-test/smoketest.sh automation-config-dev.json dev
265281
- "smoke-testing":
266282
type: approval
267283
requires:
@@ -295,14 +311,14 @@ workflows:
295311
only:
296312
- develop
297313
- develop-approval-patch-1
298-
- "hold-smoke-test-on-staging":
314+
- "approve-smoke-test-on-staging":
299315
type: approval
300316
requires:
301317
- build-prod-staging
302318
- "smoke-test-on-staging":
303319
context : org-global
304320
requires:
305-
- hold-smoke-test-on-staging
321+
- approve-smoke-test-on-staging
306322
# Production builds are exectuted
307323
# when PR is merged to the master
308324
# Don't change anything in this configuration
@@ -315,6 +331,14 @@ workflows:
315331
branches:
316332
only:
317333
- 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
318342
# Simple testing is executed for any branch other than "develop" and
319343
# "master".
320344
- test:

0 commit comments

Comments
 (0)