2019-03-07 10:56:01 +01:00
|
|
|
pipeline {
|
2019-03-21 15:44:17 +01:00
|
|
|
agent {label 'physix_agent'}
|
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
|
|
|
}
|
|
|
|
}
|
2019-04-08 19:18:45 +02:00
|
|
|
stage('Testing image processing...') {
|
|
|
|
steps {
|
|
|
|
sh './test1.bash'
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|