Improve build process
ensure the code is correctly on the virtual env python path. Change-Id: Ie7ff4954a109840159c0b7a7f0b872c99845b73f Reviewed-on: https://forge.frm2.tum.de/review/19530 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
parent
a29ed09e56
commit
63ffb86248
20
ci/Jenkinsfile
vendored
20
ci/Jenkinsfile
vendored
@ -41,6 +41,7 @@ addopts = --junit-xml=pytest.xml --junit-prefix=''' + pyver
|
|||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
python setup.py develop
|
||||||
make test
|
make test
|
||||||
'''
|
'''
|
||||||
verifyresult.put(pyver, 1)
|
verifyresult.put(pyver, 1)
|
||||||
@ -65,33 +66,42 @@ make test
|
|||||||
}
|
}
|
||||||
|
|
||||||
def run_docs() {
|
def run_docs() {
|
||||||
|
stage('prepare' {
|
||||||
|
sh '''
|
||||||
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
|
pip install -r requirements-dev.txt
|
||||||
|
pip install -r requirements.txt
|
||||||
|
python setup.py develop
|
||||||
|
'''
|
||||||
|
}
|
||||||
stage('check links') {
|
stage('check links') {
|
||||||
sh '''
|
sh '''
|
||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
|
|
||||||
make -C doc linkcheck
|
make -C doc linkcheck
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
stage('build html') {
|
stage('build html') {
|
||||||
sh '''
|
sh '''
|
||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
make -C doc html
|
make -C doc html
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
stage('build singlehtml') {
|
stage('build singlehtml') {
|
||||||
sh '''
|
sh '''
|
||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
make -C doc singlehtml
|
make -C doc singlehtml
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
stage('build latexpdf') {
|
stage('build latexpdf') {
|
||||||
sh '''
|
sh '''
|
||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
make -C doc latexpdf
|
make -C doc latexpdf
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
stage('build man') {
|
stage('build man') {
|
||||||
sh '''
|
sh '''
|
||||||
. /home/jenkins/secopvenv/bin/activate
|
. /home/jenkins/secopvenv/bin/activate
|
||||||
make -C doc man
|
make -C doc man
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user