Skip to content

Commit 49c2cd8

Browse files
authored
Build doc in CI (#119)
1 parent fdfabf3 commit 49c2cd8

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

Jenkinsfile

+37-5
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,41 @@ pipeline {
2929
'''
3030
}
3131
}
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+
}
3261
stage('Testing'){
3362
parallel{
3463

3564
stage ('Python 3.11') {
3665
steps {
3766
sh '''
38-
python3.11 -m venv venv-3.11
3967
VENV_DIR=venv-3.11 scripts/with-venv.sh scripts/check-python-version.sh 3.11
4068
VENV_DIR=venv-3.11 COVERAGE_SUFFIX=3.11 UNITTEST_VCAN=vcan0 scripts/with-venv.sh scripts/runtests.sh
4169
'''
@@ -44,7 +72,6 @@ pipeline {
4472
stage ('Python 3.10') {
4573
steps {
4674
sh '''
47-
python3.10 -m venv venv-3.10
4875
VENV_DIR=venv-3.10 scripts/with-venv.sh scripts/check-python-version.sh 3.10
4976
VENV_DIR=venv-3.10 COVERAGE_SUFFIX=3.10 UNITTEST_VCAN=vcan1 scripts/with-venv.sh scripts/runtests.sh
5077
'''
@@ -53,7 +80,6 @@ pipeline {
5380
stage ('Python 3.9') {
5481
steps {
5582
sh '''
56-
python3.9 -m venv venv-3.9
5783
VENV_DIR=venv-3.9 scripts/with-venv.sh scripts/check-python-version.sh 3.9
5884
VENV_DIR=venv-3.9 COVERAGE_SUFFIX=3.9 UNITTEST_VCAN=vcan2 scripts/with-venv.sh scripts/runtests.sh
5985
'''
@@ -62,7 +88,6 @@ pipeline {
6288
stage ('Python 3.8') {
6389
steps {
6490
sh '''
65-
python3.8 -m venv venv-3.8
6691
VENV_DIR=venv-3.8 scripts/with-venv.sh scripts/check-python-version.sh 3.8
6792
VENV_DIR=venv-3.8 COVERAGE_SUFFIX=3.8 UNITTEST_VCAN=vcan3 scripts/with-venv.sh scripts/runtests.sh
6893
'''
@@ -71,14 +96,21 @@ pipeline {
7196
stage ('Python 3.7') {
7297
steps {
7398
sh '''
74-
python3.7 -m venv venv-3.7
7599
VENV_DIR=venv-3.7 scripts/with-venv.sh scripts/check-python-version.sh 3.7
76100
VENV_DIR=venv-3.7 COVERAGE_SUFFIX=3.7 UNITTEST_VCAN=vcan4 scripts/with-venv.sh scripts/runtests.sh
77101
'''
78102
}
79103
}
80104
}
81105
}
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+
}
82114
}
83115
}
84116
}

0 commit comments

Comments
 (0)