diff --git a/.drone.yml b/.drone.yml index 5f94096..50f6a1b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,19 +1,40 @@ -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 +--- +kind: pipeline +name: python-3-5-alpine-3-9 -matrix: - ALPINE_VERSION: - - 3.7 - - 3.9 - PYTHON_VERSION: - - 3.5 - - 3.6 - - 3.7 +steps: +- name: build + image: python:3.5-alpine3.9 + pull: always + commands: + - scripts/run-tests +--- +kind: pipeline +name: python-3-6-alpine-3-9 + +steps: +- name: build + image: python:3.6-alpine3.9 + pull: always + commands: + - scripts/run-tests +--- +kind: pipeline +name: python-3-7-alpine-3-9 + +steps: +- name: build + image: python:3.7-alpine3.9 + pull: always + commands: + - scripts/run-tests +--- +kind: pipeline +name: python-3-7-alpine-3-7 + +steps: +- name: build + image: python:3.7-alpine3.7 + pull: always + commands: + - scripts/run-tests diff --git a/.gitignore b/.gitignore index 340aeed..245129e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,5 @@ .coverage .pytest_cache .tox -build -dist +build/ +dist/ diff --git a/NEWS b/NEWS index 3445842..300250e 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ * Remove Python cache files before each Tox run. * Add #borgmatic Freenode IRC channel to documentation. * Add Borg/borgmatic hosting providers section to documentation. + * Upgrade project build server from Drone 0.8 to 1.1. 1.3.5 * #153: Support for various Borg directory environment variables (BORG_CONFIG_DIR, BORG_CACHE_DIR, diff --git a/scripts/run-tests b/scripts/run-tests new file mode 100755 index 0000000..62f9862 --- /dev/null +++ b/scripts/run-tests @@ -0,0 +1,13 @@ +#!/bin/sh + +# This script is intended to be run from the continuous integration build +# server, and not on a developer machine. For that, see: +# https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/ + +set -e + +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