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:
Björn Pedersen 2018-12-04 10:52:46 +01:00 committed by Bjoern Pedersen
parent a29ed09e56
commit 63ffb86248

20
ci/Jenkinsfile vendored
View File

@ -41,6 +41,7 @@ addopts = --junit-xml=pytest.xml --junit-prefix=''' + pyver
. /home/jenkins/secopvenv/bin/activate
pip install -r requirements-dev.txt
pip install -r requirements.txt
python setup.py develop
make test
'''
verifyresult.put(pyver, 1)
@ -65,33 +66,42 @@ make test
}
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') {
sh '''
. /home/jenkins/secopvenv/bin/activate
. /home/jenkins/secopvenv/bin/activate
make -C doc linkcheck
'''
}
stage('build html') {
sh '''
. /home/jenkins/secopvenv/bin/activate
. /home/jenkins/secopvenv/bin/activate
make -C doc html
'''
}
stage('build singlehtml') {
sh '''
. /home/jenkins/secopvenv/bin/activate
. /home/jenkins/secopvenv/bin/activate
make -C doc singlehtml
'''
}
stage('build latexpdf') {
sh '''
. /home/jenkins/secopvenv/bin/activate
. /home/jenkins/secopvenv/bin/activate
make -C doc latexpdf
'''
}
stage('build man') {
sh '''
. /home/jenkins/secopvenv/bin/activate
. /home/jenkins/secopvenv/bin/activate
make -C doc man
'''
}