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

View File

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