summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick
diff options
context:
space:
mode:
authorKristian Hunt <kristian.hunt@gmail.com>2015-08-12 14:52:04 +0200
committerKristian Hunt <kristian.hunt@gmail.com>2015-08-12 14:56:49 +0200
commitdc43a25762248f542172a65ca41eb26e9e528371 (patch)
treea66076fc1c623eba3b0c692ec46c937c3a3fc6f3 /jjb/yardstick
parent69f35435acb51092e49888547be401bcca92f90b (diff)
Activate virtualenv in yardstick verify and merge jobs
JIRA: YARDSTICK-29 Change-Id: Ib45c02c134a869c3503975484e75469238b903fb Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Diffstat (limited to 'jjb/yardstick')
-rw-r--r--jjb/yardstick/yardstick.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/yardstick/yardstick.yml b/jjb/yardstick/yardstick.yml
index 8f40d8750..7b6a4fbf7 100644
--- a/jjb/yardstick/yardstick.yml
+++ b/jjb/yardstick/yardstick.yml
@@ -134,7 +134,11 @@
- 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'
@@ -190,7 +194,11 @@
- 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}'