Work on continuous integration

Add VERBOSE=1 in the make calls in the Jenkinsfile to help debugging
the build jobs in Jenkins
This commit is contained in:
Sylvain Tricot 2019-11-29 13:47:52 +01:00
parent fb671a065e
commit 54b7e409a0
2 changed files with 13 additions and 9 deletions

18
Jenkinsfile vendored
View File

@ -4,24 +4,28 @@ pipeline {
stage('Initial setup...') {
steps {
echo 'Create or update the virtual Python environment'
sh 'make venv'
sh 'make venv VERBOSE=1'
}
}
stage('Build the code and generate tests results...') {
steps {
sh '. ./ci_venv/bin/activate && make -C src results'
sh '. ./ci_venv/bin/activate && make -C src results VERBOSE=1'
}
}
stage('Create a setup file and test installation...') {
stage('Create a setup file...') {
steps {
sh 'make selfex'
sh '. ./ci_venv/bin/activate && ./package/MsSpec*.setup --accept -- -y'
sh 'make selfex VERBOSE=1'
}
}
stage('Test installation...') {
steps {
sh '. ./ci_venv/bin/activate && cd ./package/ && ./MsSpec*.setup --accept -- -y -d'
}
}
stage('Building HTML documentation...') {
steps {
sh '. ./ci_venv/bin/activate && make doc'
sh '. ./ci_venv/bin/activate && make doc VERBOSE=1'
}
}
stage('Syncing website...') {
@ -32,7 +36,7 @@ pipeline {
stage('Cleaning up...') {
steps {
echo 'Cleaning artifacts...'
sh 'make clean'
sh 'make clean VERBOSE=1'
}
}

View File

@ -60,8 +60,8 @@ clean:
venv:
@virtualenv --python=python3 --system-site-packages ci_venv
@. "./ci_venv/bin/activate" && pip install --upgrade pip numpy ase h5py lxml pint terminaltables pycairo sphinx
@virtualenv --python=python3 --system-site-packages ci_venv $(SUPPRESS_OUPUT)
@. "./ci_venv/bin/activate" && pip install --upgrade pip numpy ase h5py lxml pint terminaltables pycairo sphinx $(SUPPRESS_OUPUT)
doc:
@echo "Building pdf and html documentation..."