PyBitmessage-2021-04-27/Jenkinsfile

39 lines
1018 B
Plaintext
Raw Normal View History

2019-07-03 15:45:01 +02:00
pipeline {
2019-07-03 15:52:03 +02:00
agent any
2019-07-03 15:45:01 +02:00
triggers {
pollSCM('*/5 * * * *')
}
2019-07-03 15:52:03 +02:00
2019-07-03 15:45:01 +02:00
stages {
stage('Build environment') {
steps {
2019-07-03 16:00:16 +02:00
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
2019-07-03 15:45:01 +02:00
pip install -r /home/cis/Desktop/Python/PyBitmessage/requirements.txt
'''
}
}
stage('Test environment') {
steps {
2019-07-03 16:00:16 +02:00
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
2019-07-03 15:45:01 +02: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"
}
}
}