PyBitmessage-2021-04-27/Jenkinsfile1

41 lines
1.0 KiB
Plaintext
Raw Normal View History

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