This commit is contained in:
13
.drone.yml
13
.drone.yml
@@ -27,6 +27,15 @@ 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:
|
||||
REDIS_URL: "redis://cache"
|
||||
commands:
|
||||
- pip3 install -r requirements.txt
|
||||
- pytest test.py
|
||||
|
||||
|
||||
- name: rebuild-cache-with-filesystem
|
||||
image: meltwater/drone-cache
|
||||
pull: true
|
||||
@@ -65,6 +74,10 @@ steps:
|
||||
when:
|
||||
status: [ failure ]
|
||||
|
||||
services:
|
||||
- name: cache
|
||||
image: redis
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
||||
|
||||
Reference in New Issue
Block a user