mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-14 02:25:02 +08:00
Code for Jenkins to run both py27 and py3 tests
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -26,9 +26,10 @@ node('factory2'){
|
||||
stage('Pre Setup Node'){
|
||||
// Install EPEL and the SCLs repo
|
||||
onmyduffynode 'yum -y install epel-release yum-config-manager centos-release-scl && yum-config-manager --enable rhel-server-rhscl-7-rpms'
|
||||
onmyduffynode 'yum -y install python27 @development python-devel krb5-devel openssl-devel libffi-devel swig createrepo_c'
|
||||
onmyduffynode 'yum -y install python27 python-devel rh-python36 @development krb5-devel openssl-devel libffi-devel swig createrepo_c'
|
||||
// Update pip and setuptools and install tox in the SCL environment
|
||||
onmyduffynode 'scl enable python27 \'pip install --upgrade pip setuptools tox\''
|
||||
onmyduffynode 'scl enable rh-python36 \'pip install --upgrade pip setuptools tox\''
|
||||
}
|
||||
|
||||
stage('Clone Test Suite') {
|
||||
@@ -38,7 +39,7 @@ node('factory2'){
|
||||
stage('Run Test Suite') {
|
||||
timeout(20) {
|
||||
// Run tox in the SCL environment
|
||||
onmyduffynode 'cd fm-orchestrator && scl enable python27 \'tox -r\''
|
||||
onmyduffynode 'cd fm-orchestrator && scl enable rh-python36 \'tox -r\''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user