From 5c4d6a6e83b16336822b6f45695bba7fc326ebe4 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 20 May 2019 17:05:29 -0700 Subject: [PATCH] Upgrade Drone build file format from 0.8 to 1.x. --- .drone.yml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5f94096..64e9132 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,19 +1,23 @@ -pipeline: - build: - image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} - pull: true - commands: - - python -m pip install --upgrade pip==19.1.1 - - pip install tox==3.10.0 - - tox - - apk add --no-cache borgbackup - - tox -e end-to-end +local Pipeline(python_version, alpine_version) = { + kind: "pipeline", + steps: [ + { + name: "build", + image: "python:" + python_version + "-alpine" + alpine_version, + pull: "always", + commands: [ + "python -m pip install --upgrade pip==19.1.1", + "pip install tox==3.10.0", + "tox", + "apk add --no-cache borgbackup", + "tox -e end-to-end" + ] + } + ] -matrix: - ALPINE_VERSION: - - 3.7 - - 3.9 - PYTHON_VERSION: - - 3.5 - - 3.6 - - 3.7 +[ + Pipeline("3.7", "3.7"), + Pipeline("3.5", "3.9"), + Pipeline("3.6", "3.9"), + Pipeline("3.7", "3.9"), +]