File tree 4 files changed +87
-34
lines changed
4 files changed +87
-34
lines changed Original file line number Diff line number Diff line change 5
5
global :
6
6
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
7
7
- SEGFAULT_SIGNALS=all
8
- matrix :
9
- - TOXENV=check
10
- - TOXENV=docs
11
- matrix :
8
+ stages :
9
+ - lint
10
+ - examples
11
+ - tests
12
+ jobs :
12
13
include :
13
- - python : ' 2.7'
14
+ - stage : lint
15
+ env :
16
+ - TOXENV=check
17
+ - stage : lint
18
+ env :
19
+ - TOXENV=docs
20
+ - stage : tests
21
+ python : ' 2.7'
14
22
env :
15
23
- TOXENV=py27-t310-c45
16
- - python : ' 2.7'
24
+ - stage : tests
25
+ python : ' 2.7'
17
26
env :
18
27
- TOXENV=py27-t40-c45
19
- - python : ' 2.7'
28
+ - stage : tests
29
+ python : ' 2.7'
20
30
env :
21
31
- TOXENV=py27-t41-c45
22
- - python : ' 3.4'
32
+ - stage : tests
33
+ python : ' 3.4'
23
34
env :
24
35
- TOXENV=py34-t310-c45
25
- - python : ' 3.4'
36
+ - stage : tests
37
+ python : ' 3.4'
26
38
env :
27
39
- TOXENV=py34-t40-c45
28
- - python : ' 3.4'
40
+ - stage : tests
41
+ python : ' 3.4'
29
42
env :
30
43
- TOXENV=py34-t41-c45
31
- - python : ' 3.5'
44
+ - stage : tests
45
+ python : ' 3.5'
32
46
env :
33
47
- TOXENV=py35-t310-c45
34
- - python : ' 3.5'
48
+ - stage : tests
49
+ python : ' 3.5'
35
50
env :
36
51
- TOXENV=py35-t40-c45
37
- - python : ' 3.5'
52
+ - stage : tests
53
+ python : ' 3.5'
38
54
env :
39
55
- TOXENV=py35-t41-c45
40
- - python : ' 3.6'
56
+ - stage : tests
57
+ python : ' 3.6'
41
58
env :
42
59
- TOXENV=py36-t310-c45
43
- - python : ' 3.6'
60
+ - stage : tests
61
+ python : ' 3.6'
44
62
env :
45
63
- TOXENV=py36-t40-c45
46
- - python : ' 3.6'
64
+ - stage : tests
65
+ python : ' 3.6'
47
66
env :
48
67
- TOXENV=py36-t41-c45
49
- - python : ' 3.7'
68
+ - stage : tests
69
+ python : ' 3.7'
50
70
env :
51
71
- TOXENV=py37-t310-c45
52
- - python : ' 3.7'
72
+ - stage : tests
73
+ python : ' 3.7'
53
74
env :
54
75
- TOXENV=py37-t40-c45
55
- - python : ' 3.7'
76
+ - stage : tests
77
+ python : ' 3.7'
56
78
env :
57
79
- TOXENV=py37-t41-c45
58
- - python : ' pypy2.7-6.0'
80
+ - stage : tests
81
+ python : ' pypy2.7-6.0'
59
82
env :
60
83
- TOXENV=pypy-t310-c45
61
- - python : ' pypy2.7-6.0'
84
+ - stage : tests
85
+ python : ' pypy2.7-6.0'
62
86
env :
63
87
- TOXENV=pypy-t40-c45
64
- - python : ' pypy2.7-6.0'
88
+ - stage : tests
89
+ python : ' pypy2.7-6.0'
65
90
env :
66
91
- TOXENV=pypy-t41-c45
67
- - python : ' pypy3.5-6.0'
92
+ - stage : tests
93
+ python : ' pypy3.5-6.0'
68
94
env :
69
95
- TOXENV=pypy3-t310-c45
70
- - python : ' pypy3.5-6.0'
96
+ - stage : tests
97
+ python : ' pypy3.5-6.0'
71
98
env :
72
99
- TOXENV=pypy3-t40-c45
73
- - python : ' pypy3.5-6.0'
100
+ - stage : tests
101
+ python : ' pypy3.5-6.0'
74
102
env :
75
103
- TOXENV=pypy3-t41-c45
104
+ - stage : examples
105
+ python : ' 3.6'
106
+ script : >
107
+ cd examples/src-layout
108
+ tox
109
+ - stage : examples
110
+ python : ' 3.6'
111
+ script : >
112
+ cd examples/adhoc-layout
113
+ tox
76
114
before_install :
77
115
- python --version
78
116
- uname -a
Original file line number Diff line number Diff line change 5
5
global :
6
6
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
7
7
- SEGFAULT_SIGNALS=all
8
- matrix :
9
- - TOXENV=check
10
- - TOXENV=docs
11
- matrix :
8
+ stages :
9
+ - lint
10
+ - examples
11
+ - tests
12
+ jobs :
12
13
include :
14
+ - stage : lint
15
+ env :
16
+ - TOXENV=check
17
+ - stage : lint
18
+ env :
19
+ - TOXENV=docs
13
20
{%- for env in tox_environments %}{{ '' }}
21
+ - stage : tests
14
22
{% if env.startswith("pypy-") %}
15
- - python : ' pypy2.7-6.0'
23
+ python : ' pypy2.7-6.0'
16
24
{% elif env.startswith("pypy3-") %}
17
- - python : ' pypy3.5-6.0'
25
+ python : ' pypy3.5-6.0'
18
26
{% else %}
19
- - python : ' {{ "{0[2]}.{0[3]}".format(env) }}'
27
+ python : ' {{ "{0[2]}.{0[3]}".format(env) }}'
20
28
{% endif %}
21
29
env :
22
30
- TOXENV={{ env }}{% if 'cover' in env %},report,coveralls,codecov{% endif -%}
23
31
{%- endfor %}{{ '' }}
32
+ {%- for kind in ['src', 'adhoc'] %}{{ '' }}
33
+ - stage : examples
34
+ python : ' 3.6'
35
+ script : >
36
+ cd examples/{{ kind }}-layout
37
+ tox
38
+ {%- endfor %}{{ '' }}
24
39
before_install :
25
40
- python --version
26
41
- uname -a
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ changedir = tests
21
21
skip_install = true
22
22
deps = coverage
23
23
commands =
24
- coverage report
25
24
coverage html
25
+ coverage report --fail-under =100
26
26
27
27
[testenv:clean]
28
28
skip_install = true
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ depends =
19
19
skip_install = true
20
20
deps = coverage
21
21
commands =
22
- coverage report
23
22
coverage html
23
+ coverage report --fail-under =100
24
24
25
25
[testenv:clean]
26
26
skip_install = true
You can’t perform that action at this time.
0 commit comments