-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.jsonnet
More file actions
43 lines (42 loc) · 1011 Bytes
/
.drone.jsonnet
File metadata and controls
43 lines (42 loc) · 1011 Bytes
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
[{
kind: "pipeline",
name: "lib",
platform: {
os: "linux",
arch: "amd64"
},
steps: [
{
name: "version",
image: "debian:buster-slim",
commands: [
"echo $DRONE_BUILD_NUMBER > version"
]
},
{
name: "test",
image: "python:3.10-slim-buster",
commands: [
"pip install -e .",
"pip install -r requirements.txt",
"pip install -r requirements-dev.txt",
"py.test"
]
},
{
name: "deploy",
image: "python:3.10-slim-buster",
environment: {
PYPI_LOGIN: {
from_secret: "PYPI_LOGIN"
},
PYPI_PASSWORD: {
from_secret: "PYPI_PASSWORD"
}
},
commands: [
"./upload.sh"
]
}
]
}]