Run continuous integration tests on a matrix of Python and Borg versions.

This commit is contained in:
Dan Helfman 2018-10-13 13:09:12 -07:00
parent 2f20e6f808
commit a0691ae4cd
3 changed files with 20 additions and 1 deletions

View File

@ -1,9 +1,17 @@
pipeline: pipeline:
build: build:
image: python:3.7.0-alpine3.8 image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
pull: true pull: true
commands: commands:
- pip install tox - pip install tox
- tox - tox
- apk add --no-cache borgbackup - apk add --no-cache borgbackup
- tox -e end-to-end - tox -e end-to-end
matrix:
ALPINE_VERSION:
- 3.6
- 3.8
PYTHON_VERSION:
- 3.6
- 3.7

1
NEWS
View File

@ -1,5 +1,6 @@
1.2.8.dev0 1.2.8.dev0
* Include link to issue tracker within various command output. * Include link to issue tracker within various command output.
* Run continuous integration tests on a matrix of Python and Borg versions.
1.2.7 1.2.7
* #98: Support for Borg --keep-secondly prune option. * #98: Support for Borg --keep-secondly prune option.

View File

@ -49,5 +49,15 @@ def test_borgmatic_command():
assert len(parsed_output) == 1 assert len(parsed_output) == 1
assert len(parsed_output[0]['archives']) == 1 assert len(parsed_output[0]['archives']) == 1
# Also exercise the info flag.
output = subprocess.check_output(
f'borgmatic --config {config_path} --info --json'.split(' '),
encoding=sys.stdout.encoding,
)
parsed_output = json.loads(output)
assert len(parsed_output) == 1
assert 'repository' in parsed_output[0]
finally: finally:
shutil.rmtree(temporary_directory) shutil.rmtree(temporary_directory)