@@ -29,13 +29,41 @@ pipeline {
29
29
'''
30
30
}
31
31
}
32
+ stage (' Create venvs' ) {
33
+ parallel{
34
+ stage (' Python 3.11' ) {
35
+ steps {
36
+ sh ' python3.11 -m venv venv-3.11 && VENV_DIR=venv3.11 scripts/activate-venv.sh'
37
+ }
38
+ }
39
+ stage (' Python 3.10' ) {
40
+ steps {
41
+ sh ' python3.10 -m venv venv-3.10 && VENV_DIR=venv3.10 scripts/activate-venv.sh'
42
+ }
43
+ }
44
+ stage (' Python 3.9' ) {
45
+ steps {
46
+ sh ' python3.9 -m venv venv-3.9 && VENV_DIR=venv3.9 scripts/activate-venv.sh'
47
+ }
48
+ }
49
+ stage (' Python 3.8' ) {
50
+ steps {
51
+ sh ' python3.8 -m venv venv-3.8 && VENV_DIR=venv3.8 scripts/activate-venv.sh'
52
+ }
53
+ }
54
+ stage (' Python 3.7' ) {
55
+ steps {
56
+ sh ' python3.7 -m venv venv-3.7 && VENV_DIR=venv3.7 scripts/activate-venv.sh'
57
+ }
58
+ }
59
+ }
60
+ }
32
61
stage(' Testing' ){
33
62
parallel{
34
63
35
64
stage (' Python 3.11' ) {
36
65
steps {
37
66
sh '''
38
- python3.11 -m venv venv-3.11
39
67
VENV_DIR=venv-3.11 scripts/with-venv.sh scripts/check-python-version.sh 3.11
40
68
VENV_DIR=venv-3.11 COVERAGE_SUFFIX=3.11 UNITTEST_VCAN=vcan0 scripts/with-venv.sh scripts/runtests.sh
41
69
'''
@@ -44,7 +72,6 @@ pipeline {
44
72
stage (' Python 3.10' ) {
45
73
steps {
46
74
sh '''
47
- python3.10 -m venv venv-3.10
48
75
VENV_DIR=venv-3.10 scripts/with-venv.sh scripts/check-python-version.sh 3.10
49
76
VENV_DIR=venv-3.10 COVERAGE_SUFFIX=3.10 UNITTEST_VCAN=vcan1 scripts/with-venv.sh scripts/runtests.sh
50
77
'''
@@ -53,7 +80,6 @@ pipeline {
53
80
stage (' Python 3.9' ) {
54
81
steps {
55
82
sh '''
56
- python3.9 -m venv venv-3.9
57
83
VENV_DIR=venv-3.9 scripts/with-venv.sh scripts/check-python-version.sh 3.9
58
84
VENV_DIR=venv-3.9 COVERAGE_SUFFIX=3.9 UNITTEST_VCAN=vcan2 scripts/with-venv.sh scripts/runtests.sh
59
85
'''
@@ -62,7 +88,6 @@ pipeline {
62
88
stage (' Python 3.8' ) {
63
89
steps {
64
90
sh '''
65
- python3.8 -m venv venv-3.8
66
91
VENV_DIR=venv-3.8 scripts/with-venv.sh scripts/check-python-version.sh 3.8
67
92
VENV_DIR=venv-3.8 COVERAGE_SUFFIX=3.8 UNITTEST_VCAN=vcan3 scripts/with-venv.sh scripts/runtests.sh
68
93
'''
@@ -71,14 +96,21 @@ pipeline {
71
96
stage (' Python 3.7' ) {
72
97
steps {
73
98
sh '''
74
- python3.7 -m venv venv-3.7
75
99
VENV_DIR=venv-3.7 scripts/with-venv.sh scripts/check-python-version.sh 3.7
76
100
VENV_DIR=venv-3.7 COVERAGE_SUFFIX=3.7 UNITTEST_VCAN=vcan4 scripts/with-venv.sh scripts/runtests.sh
77
101
'''
78
102
}
79
103
}
80
104
}
81
105
}
106
+ stage(" Doc" ){
107
+ steps {
108
+ sh '''
109
+ VENV_DIR=venv-3.11 scripts/with-venv.sh pip3 install -r doc/requirements.txt
110
+ VENV_DIR=venv-3.11 scripts/with-venv.sh make -C doc html
111
+ '''
112
+ }
113
+ }
82
114
}
83
115
}
84
116
}
0 commit comments