Upgrade Drone build file format from 0.8 to 1.x.
This commit is contained in:
parent
c164684703
commit
5c4d6a6e83
1 changed files with 22 additions and 18 deletions
40
.drone.yml
40
.drone.yml
|
@ -1,19 +1,23 @@
|
||||||
pipeline:
|
local Pipeline(python_version, alpine_version) = {
|
||||||
build:
|
kind: "pipeline",
|
||||||
image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
|
steps: [
|
||||||
pull: true
|
{
|
||||||
commands:
|
name: "build",
|
||||||
- python -m pip install --upgrade pip==19.1.1
|
image: "python:" + python_version + "-alpine" + alpine_version,
|
||||||
- pip install tox==3.10.0
|
pull: "always",
|
||||||
- tox
|
commands: [
|
||||||
- apk add --no-cache borgbackup
|
"python -m pip install --upgrade pip==19.1.1",
|
||||||
- tox -e end-to-end
|
"pip install tox==3.10.0",
|
||||||
|
"tox",
|
||||||
|
"apk add --no-cache borgbackup",
|
||||||
|
"tox -e end-to-end"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
matrix:
|
[
|
||||||
ALPINE_VERSION:
|
Pipeline("3.7", "3.7"),
|
||||||
- 3.7
|
Pipeline("3.5", "3.9"),
|
||||||
- 3.9
|
Pipeline("3.6", "3.9"),
|
||||||
PYTHON_VERSION:
|
Pipeline("3.7", "3.9"),
|
||||||
- 3.5
|
]
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
|
|
Loading…
Reference in a new issue