Skip to content

Commit 056cb40

Browse files
Tobias SchochTobias Schoch
Tobias Schoch
authored and
Tobias Schoch
committed
added drone pipeline
1 parent d5575ed commit 056cb40

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.drone.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
kind: pipeline
2+
name: python-package
3+
4+
clone:
5+
depth: 50
6+
7+
steps:
8+
- name: fetch
9+
image: docker:git
10+
commands:
11+
- git fetch --tags
12+
13+
- name: test
14+
image: python:3
15+
commands:
16+
- pip install --upgrade pip setuptools wheel
17+
- python setup.py test
18+
19+
- name: build
20+
image: python:3
21+
commands:
22+
- pip install --upgrade pip setuptools wheel
23+
- python setup.py bdist_wheel
24+
- python setup.py sdist --formats=zip
25+
26+
- name: publish-staging
27+
image: shocki/alpine-devpi-client
28+
environment:
29+
DEVPI_USER:
30+
from_secret: devpi_user
31+
DEVPI_PASS:
32+
from_secret: devpi_password
33+
DEVPI_SERVER:
34+
from_secret: devpi_server
35+
commands:
36+
- devpi use $DEVPI_SERVER/$DEVPI_USER/staging
37+
- devpi login $DEVPI_USER --password $DEVPI_PASS
38+
- devpi upload dist/*.whl
39+
- devpi upload dist/*.zip
40+
41+
- name: publish-stable
42+
image: shocki/alpine-devpi-client
43+
environment:
44+
DEVPI_USER:
45+
from_secret: devpi_user
46+
DEVPI_PASS:
47+
from_secret: devpi_password
48+
DEVPI_SERVER:
49+
from_secret: devpi_server
50+
commands:
51+
- devpi use $DEVPI_SERVER/$DEVPI_USER/stable
52+
- devpi login $DEVPI_USER --password $DEVPI_PASS
53+
- devpi upload dist/*.whl
54+
- devpi upload dist/*.zip
55+
when:
56+
event:
57+
- tag

.secrets

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
devpi_password=<pw>
2+
devpi_user=<user>
3+
devpi_server=<url>

0 commit comments

Comments
 (0)