Skip to content

Commit dc33796

Browse files
authored
Merge pull request #5305 from topcoder-platform/develop
Smoke Test Automation Patch
2 parents cd6952e + c0a6b51 commit dc33796

File tree

1 file changed

+62
-17
lines changed

1 file changed

+62
-17
lines changed

.circleci/config.yml

Lines changed: 62 additions & 17 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).
@@ -231,19 +276,6 @@ workflows:
231276
branches:
232277
only:
233278
- develop
234-
- develop_automation
235-
- 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-
- "smoke-testing":
244-
type: approval
245-
requires:
246-
- build-dev
247279
# This is alternate dev env for parallel testing
248280
- "build-test":
249281
context : org-global
@@ -267,14 +299,19 @@ workflows:
267299
- free
268300
# This is stage env for production QA releases
269301
- "build-prod-staging":
270-
context : org-global
271-
requires:
272-
- smoke-testing
302+
context : org-global
273303
filters:
274304
branches:
275305
only:
276306
- develop
277-
- ci-manual-approval
307+
- "approve-smoke-test-on-staging":
308+
type: approval
309+
requires:
310+
- build-prod-staging
311+
- "smoke-test-on-staging":
312+
context : org-global
313+
requires:
314+
- approve-smoke-test-on-staging
278315
# Production builds are exectuted
279316
# when PR is merged to the master
280317
# Don't change anything in this configuration
@@ -287,6 +324,14 @@ workflows:
287324
branches:
288325
only:
289326
- master
327+
- "approve-smoke-test-on-production":
328+
type: approval
329+
requires:
330+
- build-prod
331+
- "smoke-test-on-production":
332+
context : org-global
333+
requires:
334+
- approve-smoke-test-on-production
290335
# Simple testing is executed for any branch other than "develop" and
291336
# "master".
292337
- test:

0 commit comments

Comments
 (0)