Skip to content

Develop approval patch 1 #5303

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 12 commits into from
Jan 15, 2021
74 changes: 63 additions & 11 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 @@ -233,13 +278,6 @@ workflows:
- 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:
Expand Down Expand Up @@ -267,14 +305,20 @@ 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
- develop-approval-patch-1
- "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 +331,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