Merge "yardstick: use tox to add support for python3"
authorJun Li <matthew.lijun@huawei.com>
Mon, 6 Feb 2017 06:16:17 +0000 (06:16 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 6 Feb 2017 06:16:17 +0000 (06:16 +0000)
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