forked from allure-framework/allure-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
102 lines (74 loc) · 2.06 KB
/
tox.ini
File metadata and controls
102 lines (74 loc) · 2.06 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[tox]
envlist =
py{36,37}
static-check
[testenv]
passenv = HOME
setenv =
TEST_TMP={envtmpdir}
ALLURE_INDENT_OUTPUT=yep
deps=
{distshare}/allure-python-commons-test-?.*.zip
{distshare}/allure-python-commons-?.*.zip
whitelist_externals =
rm
commands =
rm -rf {envtmpdir}/*
behave -f allure_behave.formatter:AllureFormatter -o {envtmpdir}/allrue-result -f pretty {posargs: ./features}
[testenv:xrg-eparallel]
# https://github.com/behave/behave/pull/616
# https://github.com/allure-framework/allure-python/issues/321
passenv = HOME
basepython = python3.6
setenv =
TEST_TMP={envtmpdir}
ALLURE_INDENT_OUTPUT=yep
whitelist_externals = rm
deps=
{distshare}/allure-python-commons-2*.zip
{distshare}/allure-python-commons-test-2*.zip
commands=
pip uninstall -y behave
pip install git+git://github.com/behave/behave.git@refs/pull/616/head
rm -rf {envtmpdir}/*
behave --processes 4 \
--parallel-element feature {posargs: ./features}
; -f allure_behave.formatter:AllureFormatter \
; -o {envtmpdir}/allrue-result \
; -f pretty {posargs: ./features}
[testenv:behave-master]
passenv = HOME
basepython = python3.6
setenv =
TEST_TMP={envtmpdir}
ALLURE_INDENT_OUTPUT=yep
whitelist_externals = rm
deps=
{distshare}/allure-python-commons-2*.zip
{distshare}/allure-python-commons-test-2*.zip
commands=
pip uninstall -y behave
pip install git+git://github.com/behave/behave.git
rm -rf {envtmpdir}/*
behave -f allure_behave.formatter:AllureFormatter -o {envtmpdir}/allrue-result -f pretty {posargs: ./features}
[testenv:demo]
passenv = HOME
setenv =
ALLURE_INDENT_OUTPUT=yep
TEST_TMP={envtmpdir}
whitelist_externals =
rm
mkdir
bash
commands =
rm -rf {envtmpdir}/*
- behave -v {posargs: ./features}
mkdir {envtmpdir}/demo
bash -c 'find {envtmpdir}/ -type f -exec cp -rfp \{\} {envtmpdir}/demo/ \;'
[testenv:static-check]
basepython = python
skip_install = True
deps = flake8
commands = flake8 src/
[flake8]
max-line-length = 120