forked from jhuapl-boss/django-oidc
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.yml
46 lines (41 loc) · 914 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- cache
- .tox
volumes:
- /tmp/drone-cache:/cache
build:
image: python:3.5
commands:
- mkdir -p cache/pip
- pip -q install --upgrade --cache-dir cache/pip tox flake8
- tox -e py35-django110
# - flake8 --config=.flake8rc
# - "isort -df -c -rc"
dist:
image: python:3.5
commands:
- '[ "${DRONE_TAG##v}" = "$$(python setup.py -V)" ]'
- python setup.py sdist bdist_wheel
when:
event: tag
tag: v*
pypi:
image: thomasf/twine
commands:
- twine upload dist/*
secrets: [ twine_username, twine_password ]
when:
event: tag
tag: v*
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- cache
- .tox
volumes:
- /tmp/drone-cache:/cache