Activate virtualenv in yardstick verify and merge jobs 60/1160/1
authorKristian Hunt <kristian.hunt@gmail.com>
Wed, 12 Aug 2015 12:52:04 +0000 (14:52 +0200)
committerKristian Hunt <kristian.hunt@gmail.com>
Wed, 12 Aug 2015 12:56:49 +0000 (14:56 +0200)
JIRA: YARDSTICK-29

Change-Id: Ib45c02c134a869c3503975484e75469238b903fb
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
jjb/yardstick/yardstick.yml

index 8f40d87..7b6a4fb 100644 (file)
         - shell: |
             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'
         - shell: |
             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}'