Use bash in yardstick execute shells of verify and merge jobs
[releng.git] / jjb / yardstick / yardstick.yml
index 8f40d87..b11f006 100644 (file)
 
     builders:
         - shell: |
+            #!/bin/bash
+
             echo "Running unit tests..."
             cd $WORKSPACE
+            virtualenv $WORKSPACE/yardstick_venv
+            source $WORKSPACE/yardstick_venv/bin/activate
+            python setup.py develop > /dev/null 2>&1
             ./run_tests.sh
+            deactivate
 
 - job-template:
     name: 'yardstick-merge'
 
     builders:
         - shell: |
+            #!/bin/bash
+
             echo "Running unit tests..."
             cd $WORKSPACE
+            virtualenv $WORKSPACE/yardstick_venv
+            source $WORKSPACE/yardstick_venv/bin/activate
+            python setup.py develop > /dev/null 2>&1
             ./run_tests.sh
+            deactivate
 
 - job-template:
     name: 'yardstick-{pod}'
     name: yardstick-fetch-os-creds
     builders:
         - shell:
-            !include-raw ../../utils/fetch_os_creds.sh
\ No newline at end of file
+            !include-raw ../../utils/fetch_os_creds.sh