File tree Expand file tree Collapse file tree 1 file changed +37
-11
lines changed Expand file tree Collapse file tree 1 file changed +37
-11
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,47 @@ pipeline {
12
12
// Python Tests
13
13
// --------------------------------------------------------------------
14
14
15
- stage ( ' Python2 Test' ) {
15
+ stage( ' Unit Test' ) {
16
16
17
- agent {
18
- label ' python-slave'
19
- }
17
+ parallel {
18
+
19
+ stage(' Python 2.7' ) {
20
+
21
+ agent {
22
+ label ' python-slave'
23
+ }
24
+
25
+ steps {
26
+
27
+ sh ' pip install -r package-requirements.txt'
28
+
29
+ dir(' src/python' ) {
30
+ sh ' coverage run setup.py test'
31
+ sh ' coverage report'
32
+ sh ' pyroma .'
33
+ }
34
+
35
+ }
36
+ }
37
+
38
+ stage(' Python 3.6' ) {
39
+
40
+ agent {
41
+ label ' python3-slave'
42
+ }
43
+
44
+ steps {
45
+
46
+ sh ' pip install -r package-requirements.txt'
20
47
21
- steps {
48
+ dir(' src/python' ) {
49
+ sh ' coverage run setup.py test'
50
+ sh ' coverage report'
51
+ sh ' pyroma .'
52
+ }
22
53
23
- sh ' pip install -r package-requirements.txt '
54
+ }
24
55
25
- dir(' src/python' ) {
26
- sh ' coverage run setup.py test'
27
- sh ' coverage report'
28
- sh ' pyroma .'
29
- sh ' python setup.py bdist_wheel'
30
56
}
31
57
32
58
}
You can’t perform that action at this time.
0 commit comments