File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,42 @@ pipeline {
4
4
stage(' Build' ) {
5
5
agent {
6
6
docker {
7
- image ' python:3.4-slim '
7
+ image ' python:2-alpine '
8
8
}
9
9
}
10
10
steps {
11
- sh ' python -m py_compile sources/add2vals.py'
11
+ sh ' python -m py_compile sources/add2vals.py sources/calc.py '
12
12
}
13
13
}
14
14
stage(' Test' ) {
15
15
agent {
16
16
docker {
17
- image ' python:3.4-slim '
17
+ image ' qnib/pytest '
18
18
}
19
19
}
20
20
steps {
21
- sh ' python sources/test_calc.py'
21
+ sh ' py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
22
+ }
23
+ post {
24
+ always {
25
+ junit ' test-reports/results.xml'
26
+ }
22
27
}
23
28
}
24
29
stage(' Deliver' ) {
25
30
agent {
26
31
docker {
27
- image ' cdrx/pyinstaller-linux'
32
+ image ' cdrx/pyinstaller-linux:python2 '
28
33
}
29
34
}
30
35
steps {
31
36
sh ' pyinstaller --onefile sources/add2vals.py'
32
37
}
38
+ post {
39
+ success {
40
+ archiveArtifacts ' dist/add2vals'
41
+ }
42
+ }
33
43
}
34
44
}
35
45
}
You can’t perform that action at this time.
0 commit comments