This commit is contained in:
parent
302258ce6c
commit
5ba06140dc
15
.drone.star
15
.drone.star
@ -15,6 +15,19 @@ def main(ctx):
|
|||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
pipelines += tests()
|
pipelines += tests()
|
||||||
|
pipelines += [{
|
||||||
|
"kind": "pipeline",
|
||||||
|
"name": "lint",
|
||||||
|
"workspace": get_workspace(),
|
||||||
|
"steps": [{
|
||||||
|
"name": "lint",
|
||||||
|
"image": "python:3",
|
||||||
|
"commands": [
|
||||||
|
"python -V",
|
||||||
|
"make lint",
|
||||||
|
]
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
|
||||||
# Add pypi push pipeline
|
# Add pypi push pipeline
|
||||||
pipelines += push_to_pypi()
|
pipelines += push_to_pypi()
|
||||||
@ -106,7 +119,7 @@ def push_to_pypi():
|
|||||||
return [{
|
return [{
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"name": "deploy to pypi",
|
"name": "deploy to pypi",
|
||||||
"depends_on": ["tests"],
|
"depends_on": ["tests", "lint"],
|
||||||
"workspace": get_workspace(),
|
"workspace": get_workspace(),
|
||||||
"trigger": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
|
Loading…
Reference in New Issue
Block a user