From 0569b1bf3f11530f6100431c08db59305a1c8453 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Fri, 7 Oct 2022 10:34:05 -0400 Subject: [PATCH] separate integration tests into separate job within deploy workflow --- .circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5d102c26b..e4b880318 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,8 +74,6 @@ aliases: <<: *setup_python - run: <<: *deploy - - run: - <<: *integration - store_test_results: path: test/results - run: @@ -83,6 +81,17 @@ aliases: command: tar -cvzf build.tar build - store_artifacts: path: build.tar + - &integration_tests_and_store + <<: *defaults + resource_class: large + steps: + - checkout + - run: + <<: *setup + - run: + <<: *integration + - store_test_results: + path: test/results - &update-translations <<: *defaults steps: @@ -98,8 +107,12 @@ aliases: jobs: build-and-deploy-staging: <<: *build_and_deploy + integration-tests-staging: + <<: *integration_tests_and_store build-and-deploy-production: <<: *build_and_deploy + integration-tests-production: + <<: *integration_tests_and_store update-translations: <<: *update-translations build-no-deploy: @@ -119,6 +132,17 @@ workflows: - develop - /^hotfix\/.*/ - /^release\/.*/ + - integration-tests-staging: + context: + - scratch-www-all + - scratch-www-staging + - dockerhub-credentials + filters: + branches: + only: + - develop + - /^hotfix\/.*/ + - /^release\/.*/ - build-and-deploy-production: context: - scratch-www-all @@ -128,6 +152,15 @@ workflows: branches: only: - master + - integration-tests-production: + context: + - scratch-www-all + - scratch-www-production + - dockerhub-credentials + filters: + branches: + only: + - master Update-translations: triggers: - schedule: # every evening at 7pm EST (8pm EDT, Midnight UTC)