This commit is contained in:
parent
951d4fac83
commit
2d57145a6e
61
.drone.yml
61
.drone.yml
@ -1,33 +1,9 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: test
|
name: test
|
||||||
image: python:3.9-alpine
|
global-variables:
|
||||||
steps:
|
python_image: &python_image python:3.9-alpine
|
||||||
- name: django_test
|
environment: &default_environment
|
||||||
commands:
|
|
||||||
- pip install -r requirements/dev.txt
|
|
||||||
- python manage.py test
|
|
||||||
- name: coverage
|
|
||||||
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
|
|
||||||
|
|
||||||
environment:
|
|
||||||
ACTRL_DEBUG: 1
|
ACTRL_DEBUG: 1
|
||||||
ACTRL_API_EMAIL:
|
ACTRL_API_EMAIL:
|
||||||
from_secret: ACTRL_API_EMAIL
|
from_secret: ACTRL_API_EMAIL
|
||||||
@ -51,3 +27,34 @@ environment:
|
|||||||
from_secret: SHIFTH
|
from_secret: SHIFTH
|
||||||
ST_EMAIL:
|
ST_EMAIL:
|
||||||
from_secret: ST_EMAIL
|
from_secret: ST_EMAIL
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: django_test
|
||||||
|
image: *python_image
|
||||||
|
environment:
|
||||||
|
<<: *default_environment
|
||||||
|
commands:
|
||||||
|
- pip install -r requirements/dev.txt
|
||||||
|
- python manage.py test
|
||||||
|
- name: coverage
|
||||||
|
image: *python_image
|
||||||
|
environment:
|
||||||
|
<<: *default_environment
|
||||||
|
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