forked from borgmatic-collective/borgmatic
Run continuous integration tests on a matrix of Python and Borg versions.
This commit is contained in:
parent
2f20e6f808
commit
a0691ae4cd
10
.drone.yml
10
.drone.yml
@ -1,9 +1,17 @@
|
||||
pipeline:
|
||||
build:
|
||||
image: python:3.7.0-alpine3.8
|
||||
image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
|
||||
pull: true
|
||||
commands:
|
||||
- pip install tox
|
||||
- tox
|
||||
- apk add --no-cache borgbackup
|
||||
- tox -e end-to-end
|
||||
|
||||
matrix:
|
||||
ALPINE_VERSION:
|
||||
- 3.6
|
||||
- 3.8
|
||||
PYTHON_VERSION:
|
||||
- 3.6
|
||||
- 3.7
|
||||
|
1
NEWS
1
NEWS
@ -1,5 +1,6 @@
|
||||
1.2.8.dev0
|
||||
* Include link to issue tracker within various command output.
|
||||
* Run continuous integration tests on a matrix of Python and Borg versions.
|
||||
|
||||
1.2.7
|
||||
* #98: Support for Borg --keep-secondly prune option.
|
||||
|
@ -49,5 +49,15 @@ def test_borgmatic_command():
|
||||
|
||||
assert len(parsed_output) == 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:
|
||||
shutil.rmtree(temporary_directory)
|
||||
|
Loading…
Reference in New Issue
Block a user