2019-11-19 13:20:48 +01:00
|
|
|
pipeline {
|
|
|
|
agent {label 'msspec_agent_amd64'}
|
|
|
|
stages {
|
|
|
|
stage('Initial setup...') {
|
|
|
|
steps {
|
|
|
|
echo 'Create or update the virtual Python environment'
|
2019-11-29 13:47:52 +01:00
|
|
|
sh 'make venv VERBOSE=1'
|
2019-11-19 13:20:48 +01:00
|
|
|
}
|
|
|
|
}
|
2019-11-21 17:09:19 +01:00
|
|
|
|
2019-11-29 13:20:40 +01:00
|
|
|
stage('Build the code and generate tests results...') {
|
2019-11-21 17:09:19 +01:00
|
|
|
steps {
|
2019-11-29 13:47:52 +01:00
|
|
|
sh '. ./ci_venv/bin/activate && make -C src results VERBOSE=1'
|
2019-11-21 17:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
2019-11-29 13:47:52 +01:00
|
|
|
stage('Create a setup file...') {
|
2019-11-21 17:09:19 +01:00
|
|
|
steps {
|
2019-11-29 13:47:52 +01:00
|
|
|
sh 'make selfex VERBOSE=1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test installation...') {
|
|
|
|
steps {
|
|
|
|
sh '. ./ci_venv/bin/activate && cd ./package/ && ./MsSpec*.setup --accept -- -y -d'
|
2019-11-21 17:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Building HTML documentation...') {
|
|
|
|
steps {
|
2019-11-29 13:47:52 +01:00
|
|
|
sh '. ./ci_venv/bin/activate && make doc VERBOSE=1'
|
2019-11-21 17:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Syncing website...') {
|
|
|
|
steps {
|
|
|
|
echo 'Updating the website files'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Cleaning up...') {
|
|
|
|
steps {
|
|
|
|
echo 'Cleaning artifacts...'
|
2019-11-29 13:47:52 +01:00
|
|
|
sh 'make clean VERBOSE=1'
|
2019-11-21 17:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 13:20:48 +01:00
|
|
|
}
|
|
|
|
}
|