-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
69 lines (69 loc) · 2.99 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
pipeline {
agent {
label 'docker'
}
stages {
stage ('Docker') {
agent {
dockerfile {
args '-e HOME=/tmp -e BUILD_CONTEXT=ci'
additionalBuildArgs '--target build-tests'
reuseNode true
}
}
stages {
stage('Testing'){
parallel{
stage ('Python 3.13') {
steps {
sh '''
rm -rf venv-3.13
python3.13 -m venv venv-3.13
SCRUTINY_VENV_DIR=venv-3.13 scripts/with-venv.sh scripts/check-python-version.sh 3.13
SCRUTINY_VENV_DIR=venv-3.13 SCRUTINY_COVERAGE_SUFFIX=3.13 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
stage ('Python 3.12') {
steps {
sh '''
rm -rf venv-3.12
python3.12 -m venv venv-3.12
SCRUTINY_VENV_DIR=venv-3.12 scripts/with-venv.sh scripts/check-python-version.sh 3.12
SCRUTINY_VENV_DIR=venv-3.12 SCRUTINY_COVERAGE_SUFFIX=3.12 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
stage ('Python 3.11') {
steps {
sh '''
rm -rf venv-3.11
python3.11 -m venv venv-3.11
SCRUTINY_VENV_DIR=venv-3.11 scripts/with-venv.sh scripts/check-python-version.sh 3.11
SCRUTINY_VENV_DIR=venv-3.11 SCRUTINY_COVERAGE_SUFFIX=3.11 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
stage ('Python 3.10') {
steps {
sh '''
rm -rf venv-3.10
python3.10 -m venv venv-3.10
SCRUTINY_VENV_DIR=venv-3.10 scripts/with-venv.sh scripts/check-python-version.sh 3.10
SCRUTINY_VENV_DIR=venv-3.10 SCRUTINY_COVERAGE_SUFFIX=3.10 scripts/with-venv.sh scripts/runtests.sh
'''
}
}
}
}
stage("Doc"){
steps {
sh '''
SPHINXOPTS=-W SCRUTINY_VENV_DIR=venv-3.13 scripts/with-venv.sh make -C scrutiny/sdk/docs html
'''
}
}
}
}
}
}