Initial commit.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2021-06-07 02:15:45 +04:00
commit 2091068ef6
32 changed files with 2233 additions and 0 deletions

70
.gitlab-ci.yml Normal file
View 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