Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
c61e97a761 | |||
0b2cfbd760 | |||
4b264b22fd | |||
89522c0536 | |||
4e66533cbc |
19
.drone.yml
19
.drone.yml
@ -28,6 +28,25 @@ steps:
|
||||
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
||||
- bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
||||
|
||||
- name: unit_test
|
||||
image: python:3.8
|
||||
environment:
|
||||
PRODUCER_REDIS: cache
|
||||
commands:
|
||||
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
|
||||
- pip3 install --cache-dir='./.pipcache' -r requirements_dev.txt
|
||||
- pytest
|
||||
|
||||
- name: coverage
|
||||
image: python:3.8
|
||||
environment:
|
||||
PRODUCER_REDIS: cache
|
||||
commands:
|
||||
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
|
||||
- pip3 install --cache-dir='./.pipcache' -r requirements_dev.txt
|
||||
- coverage run -m pytest
|
||||
- coverage report -m
|
||||
|
||||
- name: build-app
|
||||
image: banzaicloud/drone-kaniko
|
||||
settings:
|
||||
|
@ -10,3 +10,4 @@ implemented interfaces / functionalities:
|
||||
* log
|
||||
* sync
|
||||
|
||||
Produced by GoldenPogácsa Inc.
|
Reference in New Issue
Block a user