Skip to content

Commit

Permalink
HOTT-1740: Adds support for staging smoketests
Browse files Browse the repository at this point in the history
  • Loading branch information
willfish committed Jul 6, 2022
1 parent 98259d2 commit c9c47e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ commands:
type: string
space:
type: string
default: DEVELOPMENT
default: development
steps:
- run:
name: "Checkout tests repo"
Expand All @@ -113,13 +113,17 @@ commands:
- /root/.cache/Cypress
- run:
name: "Cypress Smoke tests"
environment:
CYPRESS_BASE_URL: "<< parameters.url >>"
CYPRESS_SPACE: "<< parameters.space >>"
command: |
cd trade-tariff-testing
yarn run dev-tariff-duty-calculator-smoketests
if [[ << parameters.space >> = "staging" ]]; then
yarn run staging-tariff-duty-calculator-smoketests
elif [[ << parameters.space >> = "development" ]]; then
yarn run dev-tariff-duty-calculator-smoketests
else
echo "You specified an invalid space"
exit 1
fi
sentry-release:
steps:
Expand All @@ -145,15 +149,15 @@ jobs:
steps:
- smoketest:
url: https://dev.trade-tariff.service.gov.uk
space: DEVELOPMENT
space: development

smoketest_staging:
docker:
- image: "cypress/base:16.5.0"
steps:
- smoketest:
url: https://staging.trade-tariff.service.gov.uk
space: STAGING
space: staging

checking:
docker:
Expand Down Expand Up @@ -350,6 +354,7 @@ workflows:
requires:
- build_live
- smoketest_staging:
context: trade-tariff
filters:
branches:
only:
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nodejs 16.5.0
yarn 1.22.10

0 comments on commit c9c47e0

Please sign in to comment.