Add base for cypress tests in pipeline
This commit is contained in:
parent
7d17914e2c
commit
ee5f5cf945
|
|
@ -17,7 +17,7 @@ definitions:
|
|||
|
||||
aliases:
|
||||
- &unittest-python
|
||||
name: Unittest python server code
|
||||
name: run python unit tests
|
||||
caches:
|
||||
- pip
|
||||
services:
|
||||
|
|
@ -30,8 +30,14 @@ aliases:
|
|||
- export USE_AWS=False
|
||||
- pipenv install --dev --system
|
||||
- ./server/run_unittests_coverage.sh
|
||||
- &cypress-test
|
||||
name: run cypress tests
|
||||
services:
|
||||
- postgres
|
||||
script:
|
||||
- echo "This pipeline rules!"
|
||||
- &deploy-prod
|
||||
name: Heroku deploy skillbox-prod
|
||||
name: deploy to prod on Heroku
|
||||
script:
|
||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-prod.git HEAD:master
|
||||
|
||||
|
|
@ -45,8 +51,9 @@ pipelines:
|
|||
|
||||
develop:
|
||||
- step: *unittest-python
|
||||
- step: *cypress-test
|
||||
- step:
|
||||
name: Heroku deploy skillbox-stage
|
||||
name: deploy to stage on Heroku
|
||||
script:
|
||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue