Add a timeout for the Jenkins test suite

This commit is contained in:
mprahl
2017-11-08 10:30:12 -05:00
parent 3ccbb3dd57
commit a3e19c5bd6

8
Jenkinsfile vendored
View File

@@ -35,8 +35,14 @@ node('factory2'){
onmyduffynode "git clone -b \"${env.BRANCH_NAME}\" https://pagure.io/fm-orchestrator"
}
stage('Prepare Node') {
onmyduffynode 'cd fm-orchestrator && pip install -r requirements.txt && pip install -r test-requirements.txt && python setup.py develop'
}
stage('Run Test Suite') {
onmyduffynode 'cd fm-orchestrator && pip install -r requirements.txt && pip install -r test-requirements.txt && python setup.py develop && flake8 --ignore E731 --exclude .tox,.git,module_build_service/migrations && pytest -v tests/'
timeout(600) {
onmyduffynode 'cd fm-orchestrator && flake8 --ignore E731 --exclude .tox,.git,module_build_service/migrations && pytest -v tests/'
}
}
}catch (e){