mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
separate integration tests into separate job within deploy workflow
This commit is contained in:
parent
54a56ecaf4
commit
0569b1bf3f
1 changed files with 35 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue