2019-03-07 10:56:01 +01:00
|
|
|
pipeline {
|
2019-03-20 15:54:49 +01:00
|
|
|
agent {label 'msspec_agent_amd64'}
|
2019-03-07 10:56:01 +01:00
|
|
|
stages {
|
|
|
|
stage('Initial setup...') {
|
|
|
|
steps {
|
|
|
|
echo 'Initial setup...'
|
2019-03-07 11:33:59 +01:00
|
|
|
// echo 'Create or update the virtual Python environment'
|
|
|
|
// sh '/bin/bash ./src/CI/CI.bash -i ci_venv'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Building the package...') {
|
|
|
|
steps {
|
2019-03-07 11:43:41 +01:00
|
|
|
sh '/bin/bash -c make'
|
2019-03-07 11:33:59 +01:00
|
|
|
// sh '/bin/bash ./src/CI/CI.bash -p ci_venv'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Testing the package...') {
|
|
|
|
steps {
|
|
|
|
sh './hello'
|
2019-03-07 11:33:59 +01:00
|
|
|
// sh 'cp ~/.bashrc ~/.bashrc.bak'
|
|
|
|
// sh './install_resources/packages/$(cat VERSION).setup --accept -- -y'
|
|
|
|
// sh '$HOME/.local/bin/msspec -f $HOME/.local/share/$(cat VERSION)'
|
|
|
|
// sh '$HOME/.local/bin/msspec -t'
|
|
|
|
// sh 'yes 1|$HOME/.local/bin/msspec -u'
|
|
|
|
// sh 'mv ~/.bashrc.bak ~/.bashrc'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Building HTML documentation...') {
|
|
|
|
steps {
|
|
|
|
echo 'Building HTML documentation...'
|
2019-03-07 11:33:59 +01:00
|
|
|
// sh '/bin/bash ./src/CI/CI.bash -d ci_venv'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Releasing package...') {
|
|
|
|
steps {
|
|
|
|
echo 'Releasing package...'
|
2019-03-07 11:33:59 +01:00
|
|
|
// sh 'rm -rf $HOME/www/*'
|
|
|
|
// sh 'cp -a ./src/doc/build/html/* $HOME/www/'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Cleaning up...') {
|
|
|
|
steps {
|
|
|
|
echo 'Cleaning artifacts...'
|
2019-03-07 11:43:41 +01:00
|
|
|
sh '/bin/bash -c "make clean"'
|
2019-03-07 11:33:59 +01:00
|
|
|
// sh 'rm -rf ./install_resources'
|
|
|
|
// sh 'cd ./src/doc && make clean'
|
2019-03-07 10:56:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|