jenkins_test.sh 511 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /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))