This commit is contained in:
parent
977f1858a7
commit
9aa315e2c2
30
.drone.yml
Normal file
30
.drone.yml
Normal file
@ -0,0 +1,30 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: django_test
|
||||
image: python:3.9-alpine
|
||||
commands:
|
||||
- pip install -r requirements/dev.txt
|
||||
- python manage.py test
|
||||
- name: coverage
|
||||
image: python:3.9-alpine
|
||||
commands:
|
||||
- pip install -r requirements/dev.txt
|
||||
- coverage run
|
||||
- coverage report -m
|
||||
- coverage html -d public/coverage
|
||||
- name: upload_artifacts
|
||||
image: plugins/s3
|
||||
settings:
|
||||
source: public/**/*
|
||||
path_style: true
|
||||
enpoint:
|
||||
from_secret: S3_ENDPOINT
|
||||
bucket: drone
|
||||
target: /target/location/${DRONE_BUILD_NUMBER}
|
||||
access_key:
|
||||
from_secret: S3_ACCESS_KEY
|
||||
secret_key:
|
||||
from_secret: S3_SECRET_KEY
|
Loading…
x
Reference in New Issue
Block a user