mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 16:26:29 +00:00
e6424aa0f5
also: have a setting to disable fail-fast, in case something breaks again.
43 lines
864 B
INI
43 lines
864 B
INI
# tox configuration - if you change anything here, run this to verify:
|
|
# fakeroot -u tox --recreate
|
|
|
|
[tox]
|
|
envlist = py{39,310,311}-{none,fuse2,fuse3}
|
|
minversion = 3.2
|
|
requires =
|
|
pkgconfig
|
|
cython
|
|
wheel
|
|
setuptools_scm
|
|
[testenv]
|
|
setenv =
|
|
fuse2: BORG_FUSE_IMPL=llfuse
|
|
fuse3: BORG_FUSE_IMPL=pyfuse3
|
|
deps =
|
|
fuse2: llfuse
|
|
fuse3: pyfuse3
|
|
-rrequirements.d/development.txt
|
|
commands = py.test -v -n {env:XDISTN:1} -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
|
# fakeroot -u needs some env vars:
|
|
passenv = *
|
|
|
|
|
|
[testenv:.pkg]
|
|
passenv = * # needed by tox4, so env vars are visible for building borg
|
|
|
|
|
|
[testenv:flake8]
|
|
skip_sdist=true
|
|
skip_install=true
|
|
changedir =
|
|
deps =
|
|
flake8
|
|
commands = flake8 src scripts conftest.py
|
|
|
|
[testenv:mypy]
|
|
changedir =
|
|
deps =
|
|
pytest
|
|
mypy
|
|
pkgconfig
|
|
commands = mypy
|