#886 [WIP]Code for Jenkins to run both py27 and py3 tests
Closed 6 years ago by yashn. Opened 6 years ago by yashn.
yashn/fm-orchestrator py3-final  into  master

file modified
+4 -2
@@ -26,9 +26,10 @@ 

          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 @development python-devel python3 @development python3-devel krb5-devel openssl-devel libffi-devel swig createrepo_c'

You can remove the duplicate @development here.

              // Update pip and setuptools and install tox in the SCL environment

              onmyduffynode 'scl enable python27 \'pip install --upgrade pip setuptools tox\''

+             onmyduffynode 'scl enable python3 \'pip install --upgrade pip setuptools tox\''

          }

  

          stage('Clone Test Suite') {
@@ -36,9 +37,10 @@ 

          }

  

          stage('Run Test Suite') {

-             timeout(20) {

+             timeout(50) {

We probably shouldn't up this to 50 minutes. 20 minutes seems reasonable considering the py27 tests should take about 5 minutes to run (including installing the Python dependencies).

                  // Run tox in the SCL environment

                  onmyduffynode 'cd fm-orchestrator && scl enable python27 \'tox -r\''

+                 onmyduffynode 'cd fm-orchestrator && scl enable python3 \'tox -r\''

              }

          }

  

no initial comment

You can remove the duplicate @development here.

We probably shouldn't up this to 50 minutes. 20 minutes seems reasonable considering the py27 tests should take about 5 minutes to run (including installing the Python dependencies).

@yashn if you branch off of the main repo (not your fork), then CentOS CI will run at:
https://ci.centos.org/job/factory2-fm-orchestrator/

Pull-Request has been closed by yashn

6 years ago