jenkins.plone.org/virtualenv: [virtualenv] Move a handful of jobs

Gil Forcada <jenkins-z4DKO/[email protected]> Tue, 01 Aug 2017 15:52:56 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: jenkins.plone.org
Branch: refs/heads/virtualenv
Date: 2017-08-02T00:52:04+02:00
Author: Gil Forcada (gforcada) <[email protected]>
Commit: https://github.com/plone/jenkins.plone.org/commit/d8a9153e4b7fdb6a41055f8b263519baadc1f797

[virtualenv] Move a handful of jobs

Files changed:
M jobs/jobs.yml
M jobs/scripts/5.x-at.sh
M jobs/scripts/5.x-robot.sh
M jobs/scripts/5.x-tests.sh
M jobs/scripts/plips.sh

diff --git a/jobs/jobs.yml b/jobs/jobs.yml
index 1f31d16..bdf361d 100644
--- a/jobs/jobs.yml
+++ b/jobs/jobs.yml
@@ -317,8 +317,13 @@
             branch: '{plone-version}'
 
     builders:
-        - shell:
-            !include-raw: scripts/5.x-tests.sh
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                !include-raw: scripts/5.x-tests.sh
 
     publishers:
         - custom-junit-new
@@ -348,8 +353,13 @@
             branch: '{plone-version}'
 
     builders:
-        - shell:
-            !include-raw: scripts/5.x-robot.sh
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                !include-raw: scripts/5.x-robot.sh
 
     publishers:
         - custom-email-ext
@@ -398,8 +408,13 @@
             branch: '{plone-version}'
 
     builders:
-        - shell:
-            !include-raw: scripts/5.x-at.sh
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                !include-raw: scripts/5.x-at.sh
 
     publishers:
         - custom-junit-new
@@ -452,8 +467,13 @@
             branch: '{branch}'
 
     builders:
-        - shell:
-            !include-raw: scripts/plips.sh
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                !include-raw: scripts/plips.sh
 
     publishers:
         - custom-junit-new
@@ -512,10 +532,15 @@
         - timed: '@midnight'
 
     builders:
-        - shell: |
-            $PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c buildout.cfg
-            bin/buildout -c buildout.cfg
-            bin/sphinx-build source build
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                pip install -r requirements.txt
+                buildout -c buildout.cfg
+                bin/sphinx-build source build
 
     publishers:
         - email-ext:
@@ -561,10 +586,15 @@
         - timed: '@midnight'
 
     builders:
-        - shell: |
-            $PYTHON27 bootstrap.py -c buildout.cfg
-            bin/buildout -c buildout.cfg
-            bin/sphinx-build src/plone.themepreview/source build
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                pip install -r requirements.txt
+                buildout -c buildout.cfg
+                bin/sphinx-build src/plone.themepreview/source build
 
     publishers:
         - html-publisher:
@@ -719,12 +749,18 @@
         - timed: "@daily"
 
     builders:
-        - shell: |
-            sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-            $PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins-package-dependencies.cfg
-            bin/buildout -c jenkins-package-dependencies.cfg
-            bin/jenkins-package-dependencies-{kind}
-            bin/jenkins-package-dependencies-{kind}-imports
+    builders:
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
+                pip install -r requirements.txt
+                buildout -c jenkins-package-dependencies.cfg
+                bin/jenkins-package-dependencies-{kind}
+                bin/jenkins-package-dependencies-{kind}-imports
 
     publishers:
         - archive:
@@ -746,13 +782,18 @@
         - timed: "@daily"
 
     builders:
-        - shell: |
-            sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-            $PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins-package-dependencies.cfg
-            bin/buildout -c core.cfg
-            grep -RI ZopeTestCase parts/packages > deps.txt.tmp || echo 0
-            sed -i 's|parts/packages||' deps.txt.tmp
-            grep -Ev '/(Testing|OFS|PloneTestCase|Zope2|ZPublisher)/' deps.txt.tmp > deps.txt
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
+                pip install -r requirements.txt
+                buildout -c core.cfg
+                grep -RI ZopeTestCase parts/packages > deps.txt.tmp || echo 0
+                sed -i 's|parts/packages||' deps.txt.tmp
+                grep -Ev '/(Testing|OFS|PloneTestCase|Zope2|ZPublisher)/' deps.txt.tmp > deps.txt
 
     publishers:
         - archive:
@@ -774,11 +815,16 @@
         - timed: "@daily"
 
     builders:
-        - shell: |
-            sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-            $PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins-package-dependencies.cfg
-            bin/buildout -c jenkins-package-dependencies.cfg
-            bin/jenkins-package-dependencies-text
+        - shining-panda:
+            build-environment: virtualenv
+            python-version: System-CPython-2.7
+            clear: true
+            nature: shell
+            command:
+                sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
+                pip install -r requirements.txt
+                buildout -c jenkins-package-dependencies.cfg
+                bin/jenkins-package-dependencies-text
 
     publishers:
         - archive:
diff --git a/jobs/scripts/5.x-at.sh b/jobs/scripts/5.x-at.sh
index 38c3eab..cdf67ab 100644
--- a/jobs/scripts/5.x-at.sh
+++ b/jobs/scripts/5.x-at.sh
@@ -1,6 +1,5 @@
 #!/bin/bash
-# buildout and AT tests
 sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-$PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins.cfg
-bin/buildout -c jenkins.cfg
+pip install -r requirements.txt
+buildout -c jenkins.cfg
 bin/alltests-at --xml
diff --git a/jobs/scripts/5.x-robot.sh b/jobs/scripts/5.x-robot.sh
index 8ed2615..2c2b269 100644
--- a/jobs/scripts/5.x-robot.sh
+++ b/jobs/scripts/5.x-robot.sh
@@ -1,7 +1,6 @@
 #!/bin/bash
-# buildout and robot tests
 sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-$PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins.cfg
-bin/buildout -c jenkins.cfg
+pip install -r requirements.txt
+buildout -c jenkins.cfg
 ROBOTSUITE_PREFIX=ONLYROBOT
 bin/alltests -t ONLYROBOT --all --xml
diff --git a/jobs/scripts/5.x-tests.sh b/jobs/scripts/5.x-tests.sh
index 60635e7..864da1e 100644
--- a/jobs/scripts/5.x-tests.sh
+++ b/jobs/scripts/5.x-tests.sh
@@ -1,6 +1,5 @@
 #!/bin/bash
-# buildout and core tests (no AT nor robot)
 sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-$PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c jenkins.cfg
-bin/buildout -c jenkins.cfg
+pip install -r requirements.txt
+buildout -c jenkins.cfg
 bin/alltests --xml
diff --git a/jobs/scripts/plips.sh b/jobs/scripts/plips.sh
index 220b27e..39e4ebd 100644
--- a/jobs/scripts/plips.sh
+++ b/jobs/scripts/plips.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 # buildout, core and AT tests
 sed -i 's/    mr.developer/    mr.developer\ngit-clone-depth = 100/' core.cfg
-$PYTHON27 bootstrap.py --setuptools-version 33.1.1 --buildout-version 2.8.0 -c {buildout}
-bin/buildout -c {buildout}
+pip install -r requirements.txt
+buildout -c {buildout}
 
 return_code="all_right"
 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot