Skip to content

Commit bf0cf11

Browse files
authored
Build doc in CI (#210)
1 parent a256231 commit bf0cf11

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

Jenkinsfile

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,41 @@ pipeline {
1212
}
1313
}
1414
stages {
15+
stage ('Create venvs') {
16+
parallel{
17+
stage ('Python 3.11') {
18+
steps {
19+
sh 'python3.11 -m venv venv-3.11 && VENV_DIR=venv3.11 scripts/activate-venv.sh'
20+
}
21+
}
22+
stage ('Python 3.10') {
23+
steps {
24+
sh 'python3.10 -m venv venv-3.10 && VENV_DIR=venv3.10 scripts/activate-venv.sh'
25+
}
26+
}
27+
stage ('Python 3.9') {
28+
steps {
29+
sh 'python3.9 -m venv venv-3.9 && VENV_DIR=venv3.9 scripts/activate-venv.sh'
30+
}
31+
}
32+
stage ('Python 3.8') {
33+
steps {
34+
sh 'python3.8 -m venv venv-3.8 && VENV_DIR=venv3.8 scripts/activate-venv.sh'
35+
}
36+
}
37+
stage ('Python 3.7') {
38+
steps {
39+
sh 'python3.7 -m venv venv-3.7 && VENV_DIR=venv3.7 scripts/activate-venv.sh'
40+
}
41+
}
42+
}
43+
}
1544
stage('Testing'){
1645
parallel{
1746

1847
stage ('Python 3.11') {
1948
steps {
2049
sh '''
21-
python3.11 -m venv venv-3.11
2250
VENV_DIR=venv-3.11 scripts/with-venv.sh scripts/check-python-version.sh 3.11
2351
VENV_DIR=venv-3.11 COVERAGE_SUFFIX=3.11 scripts/with-venv.sh scripts/runtests.sh
2452
'''
@@ -27,7 +55,6 @@ pipeline {
2755
stage ('Python 3.10') {
2856
steps {
2957
sh '''
30-
python3.10 -m venv venv-3.10
3158
VENV_DIR=venv-3.10 scripts/with-venv.sh scripts/check-python-version.sh 3.10
3259
VENV_DIR=venv-3.10 COVERAGE_SUFFIX=3.10 scripts/with-venv.sh scripts/runtests.sh
3360
'''
@@ -36,7 +63,6 @@ pipeline {
3663
stage ('Python 3.9') {
3764
steps {
3865
sh '''
39-
python3.9 -m venv venv-3.9
4066
VENV_DIR=venv-3.9 scripts/with-venv.sh scripts/check-python-version.sh 3.9
4167
VENV_DIR=venv-3.9 COVERAGE_SUFFIX=3.9 scripts/with-venv.sh scripts/runtests.sh
4268
'''
@@ -45,7 +71,6 @@ pipeline {
4571
stage ('Python 3.8') {
4672
steps {
4773
sh '''
48-
python3.8 -m venv venv-3.8
4974
VENV_DIR=venv-3.8 scripts/with-venv.sh scripts/check-python-version.sh 3.8
5075
VENV_DIR=venv-3.8 COVERAGE_SUFFIX=3.8 scripts/with-venv.sh scripts/runtests.sh
5176
'''
@@ -54,15 +79,23 @@ pipeline {
5479
stage ('Python 3.7') {
5580
steps {
5681
sh '''
57-
python3.7 -m venv venv-3.7
5882
VENV_DIR=venv-3.7 scripts/with-venv.sh scripts/check-python-version.sh 3.7
5983
VENV_DIR=venv-3.7 COVERAGE_SUFFIX=3.7 scripts/with-venv.sh scripts/runtests.sh
6084
'''
6185
}
6286
}
6387
}
6488
}
89+
stage("Doc"){
90+
steps {
91+
sh '''
92+
VENV_DIR=venv-3.11 scripts/with-venv.sh pip3 install -r doc/requirements.txt
93+
VENV_DIR=venv-3.11 scripts/with-venv.sh make -C doc html
94+
'''
95+
}
96+
}
6597
}
6698
}
99+
67100
}
68101
}

0 commit comments

Comments
 (0)