Skip to content

Commit 276f6a2

Browse files
authored
Merge pull request #5303 from topcoder-platform/develop-approval-patch-1
Develop approval patch 1
2 parents 14985e8 + 141adfc commit 276f6a2

File tree

1 file changed

+63
-11
lines changed

1 file changed

+63
-11
lines changed

.circleci/config.yml

Lines changed: 63 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,51 @@ jobs:
203203
source awsenvconf
204204
source buildenvvar
205205
./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+
206251
# Test job for the cases when we do not need deployment. It just rapidly
207252
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
208253
# Jest unit-tests).
@@ -233,13 +278,6 @@ workflows:
233278
- develop
234279
- develop_automation
235280
- 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
243281
- "smoke-testing":
244282
type: approval
245283
requires:
@@ -267,14 +305,20 @@ workflows:
267305
- free
268306
# This is stage env for production QA releases
269307
- "build-prod-staging":
270-
context : org-global
271-
requires:
272-
- smoke-testing
308+
context : org-global
273309
filters:
274310
branches:
275311
only:
276312
- 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
278322
# Production builds are exectuted
279323
# when PR is merged to the master
280324
# Don't change anything in this configuration
@@ -287,6 +331,14 @@ workflows:
287331
branches:
288332
only:
289333
- 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
290342
# Simple testing is executed for any branch other than "develop" and
291343
# "master".
292344
- test:

0 commit comments

Comments
 (0)