2015-03-15 18:14:30 +01:00
|
|
|
[tox]
|
2018-10-01 02:30:04 +02:00
|
|
|
envlist = py3
|
|
|
|
skipsdist = True
|
2015-03-15 18:14:30 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-10-01 02:30:04 +02:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
2018-10-01 02:30:04 +02:00
|
|
|
py.test --cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end \
|
|
|
|
tests []
|
2018-09-30 07:45:00 +02:00
|
|
|
black --skip-string-normalization --line-length 100 --check .
|
2018-09-30 08:15:18 +02:00
|
|
|
flake8 .
|
2018-09-30 07:45:00 +02:00
|
|
|
|
|
|
|
[testenv:black]
|
2018-10-01 02:30:04 +02:00
|
|
|
basepython = python3.7
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
|
|
|
black --skip-string-normalization --line-length 100 .
|
2018-09-30 08:15:18 +02:00
|
|
|
|
2018-10-01 02:30:04 +02:00
|
|
|
[testenv:end-to-end]
|
|
|
|
whitelist_externals = docker
|
|
|
|
skip_install = true
|
|
|
|
deps =
|
|
|
|
commands =
|
|
|
|
docker build --file tests/end-to-end/Dockerfile --tag borgmatic-test .
|
|
|
|
docker run --rm borgmatic-test py.test tests/end-to-end []
|
|
|
|
|
2018-09-30 08:15:18 +02:00
|
|
|
[flake8]
|
2018-10-01 02:30:04 +02:00
|
|
|
ignore = E501,W503
|
|
|
|
exclude = *.*/*
|