70
.gitlab-ci.yml
Normal file
70
.gitlab-ci.yml
Normal file
@ -0,0 +1,70 @@
|
||||
stages:
|
||||
- tools
|
||||
- test
|
||||
- cleanup_tests
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build_test:
|
||||
stage: tools
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make build-test
|
||||
|
||||
flake8:
|
||||
stage: test
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make flake8
|
||||
|
||||
pytest:
|
||||
stage: test
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make pytest
|
||||
|
||||
black:
|
||||
stage: test
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make black
|
||||
|
||||
mypy:
|
||||
stage: test
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make mypy
|
||||
|
||||
cleanup_tests:
|
||||
stage: cleanup_tests
|
||||
tags:
|
||||
- bots-deployer
|
||||
when: always
|
||||
script:
|
||||
- make clear-test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make build push
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
when: manual
|
||||
tags:
|
||||
- bots-deployer
|
||||
script:
|
||||
- make deploy-prod
|
Reference in New Issue
Block a user