PyBitmessage-2021-04-27/Jenkinsfile

38 lines
1000 B
Plaintext
Raw Normal View History

2019-07-03 13:45:01 +00:00
pipeline {
2019-07-03 13:52:03 +00:00
agent any
2019-07-03 13:45:01 +00:00
triggers {
pollSCM('*/5 * * * *')
}
2019-07-03 13:52:03 +00:00
2019-07-03 13:45:01 +00:00
stages {
stage('Build environment') {
steps {
2019-07-03 14:07:22 +00:00
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate'''
sh '''pip install -r /home/cis/Desktop/Python/PyBitmessage/requirements.txt'''
2019-07-03 13:45:01 +00:00
}
}
stage('Test environment') {
steps {
2019-07-03 14:00:16 +00:00
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
2019-07-03 13:45:01 +00:00
cd /home/cis/Desktop/Python/PyBitmessage
sudo python setup.py install
sudo /home/cis/.local/bin/nosetests --with-xunit tests
'''
}
}
stage('Test Run') {
steps {
sh '''python /home/cis/Desktop/Python/PyBitmessage/src/bitmessagemain.py -t
'''
}
}
}
post {
failure {
echo "Send e-mail, when failed"
}
}
}