Commit 916c3f3d authored by Sigmund Augdal's avatar Sigmund Augdal

Added script to run tests from jenkins

parent 396db0ec
#! /bin/bash
set -e
set -o pipefail
pip install pylint
pip install coverage
git clone https://scm.uninett.no/nova/scvmm_client_py.git
cd scvmm_client_py
python setup.py install
cd ..
rm -rf scvmm_client_py
python setup.py develop
pylint --rcfile .pylintrc -f parseable nova_router *.py >pylint.out|| result=$?
echo "pylint returned $result"
coverage run --branch --omit='/data/jenkins/shiningpanda/*' -m py.test --junitxml=testresults.xml
res=$(($result&35))
coverage xml --omit '.data*'
exit $(($result&35))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment