yardstick: use tox to add support for python3 83/25583/6
authorRoss Brattain <ross.b.brattain@intel.com>
Wed, 7 Dec 2016 04:06:18 +0000 (23:06 -0500)
committerRoss Brattain <ross.b.brattain@intel.com>
Fri, 3 Feb 2017 04:29:05 +0000 (20:29 -0800)
We need to start adding support to Python3 to match
Openstack support for Python3.

Use tox and move all the env setup to tox.ini

JIRA: YARDSTICK-452

Change-Id: Ie57b5edd87ab6fad641a174f468d3265757e0f71
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
jjb/yardstick/yardstick-project-jobs.yml

index 4b7ff6f..120e6af 100644 (file)
 
             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