Skip to content

Smoke Test Automation Patch #5305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 62 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,51 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp

"smoke-test-on-staging":
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar
- run:
name: "Run automation"
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-staging.json prod

"smoke-test-on-production":
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
- run:
name: "Run automation"
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-prod.json prod

# Test job for the cases when we do not need deployment. It just rapidly
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
# Jest unit-tests).
Expand Down Expand Up @@ -231,19 +276,6 @@ workflows:
branches:
only:
- develop
- develop_automation
- ci-manual-approval
post-steps:
- run:
name: Run automation
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-dev.json dev
- "smoke-testing":
type: approval
requires:
- build-dev
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand All @@ -267,14 +299,19 @@ workflows:
- free
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
requires:
- smoke-testing
context : org-global
filters:
branches:
only:
- develop
- ci-manual-approval
- "approve-smoke-test-on-staging":
type: approval
requires:
- build-prod-staging
- "smoke-test-on-staging":
context : org-global
requires:
- approve-smoke-test-on-staging
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand All @@ -287,6 +324,14 @@ workflows:
branches:
only:
- master
- "approve-smoke-test-on-production":
type: approval
requires:
- build-prod
- "smoke-test-on-production":
context : org-global
requires:
- approve-smoke-test-on-production
# Simple testing is executed for any branch other than "develop" and
# "master".
- test:
Expand Down