-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
46 lines (41 loc) · 1.11 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
skipsdist = true
envlist = py36,lint,docker-build
[testenv]
setenv = PYTHONPATH = {toxinidir}/dropbox-upload
changedir=tests
deps =
-rdropbox-upload/requirements.txt
-rtest-requirements.txt
commands=
pytest -v --basetemp={envtmpdir} \
--cov=dropbox_upload --cov-fail-under=80 --cov-report=term-missing {posargs}
[testenv:format]
basepython=python3
deps =
-rtest-requirements.txt
commands=
isort --profile black {toxinidir}/dropbox-upload {toxinidir}/tests
black {toxinidir}/dropbox-upload {toxinidir}/tests
[testenv:lint]
basepython=python3
deps =
-rtest-requirements.txt
commands=
pyflakes {toxinidir}/dropbox-upload {toxinidir}/tests
black --check {toxinidir}/dropbox-upload {toxinidir}/tests
isort --check-only --diff --recursive {toxinidir}/dropbox-upload {toxinidir}/tests
[testenv:docker-build]
passenv=
ARCH
whitelist_externals=
{toxinidir}/scripts/docker-build.sh
commands=
{toxinidir}/scripts/docker-build.sh {toxinidir}
[testenv:docker-push]
passenv=
ARCH
whitelist_externals=
{toxinidir}/scripts/docker-push.sh
commands=
{toxinidir}/scripts/docker-push.sh {toxinidir}