Merge "Create jobs for euphrates"
[releng.git] / jjb / yardstick / yardstick-project-jobs.yml
index f328164..7738aed 100644 (file)
@@ -16,7 +16,7 @@
             branch: '{stream}'
             gs-pathname: ''
             disabled: false
-        - danube:
+        - euphrates:
             branch: 'stable/{stream}'
             gs-pathname: '/{stream}'
             disabled: false
@@ -33,7 +33,6 @@
     parameters:
         - project-parameter:
             project: '{project}'
-        - gerrit-parameter:
             branch: '{branch}'
         - 'opnfv-build-ubuntu-defaults'
 
                 branches:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
+
+    wrappers:
+        - ssh-agent-wrapper
+        - timeout:
+            timeout: 30
+            fail: true
+
     builders:
         - yardstick-unit-tests-and-docs-build
 
@@ -70,7 +76,6 @@
     parameters:
         - project-parameter:
             project: '{project}'
-        - gerrit-parameter:
             branch: '{branch}'
         - 'opnfv-build-ubuntu-defaults'
         - string:
                     - branch-compare-type: 'ANT'
                       branch-pattern: '**/{branch}'
 
+    wrappers:
+        - ssh-agent-wrapper
+        - timeout:
+            timeout: 30
+            fail: true
+
     builders:
         - yardstick-unit-tests-and-docs-build
 
             set -o errexit
             set -o pipefail
 
+            sudo apt-get install -y build-essential python-dev python3-dev
+
             echo "Running unit tests..."
             cd $WORKSPACE
-            virtualenv $WORKSPACE/yardstick_venv
-            source $WORKSPACE/yardstick_venv/bin/activate
-
-            # install python packages
-            sudo apt-get install -y build-essential python-dev python-pip python-pkg-resources
-            easy_install -U setuptools==33.1.1
-            easy_install -U pip
-            pip install -r requirements.txt || pip install -r tests/ci/requirements.txt
-            pip install -e .
-
-            # unit tests
-            ./run_tests.sh
-
-            deactivate
+            tox