From: Christophe Bliard Date: Fri, 4 Oct 2013 13:38:13 +0000 (+0200) Subject: ensure virtualenv installed and WORKSPACE defined X-Git-Tag: v0.2.23~93^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6547566581350107d75de41b08429d4c2e5e8e54;p=tools%2Fpython-jenkinsapi.git ensure virtualenv installed and WORKSPACE defined --- diff --git a/jenkins_build.sh b/jenkins_build.sh index c099183..5ceb646 100644 --- a/jenkins_build.sh +++ b/jenkins_build.sh @@ -1,4 +1,8 @@ #! /bin/bash +if ! command -v virtualenv >/dev/null 2>&1; then + echo "You should install virtualenv, check http://www.virtualenv.org/" + exit 1 +fi virtualenv . source bin/activate python setup.py develop @@ -6,4 +10,5 @@ easy_install nose easy_install mock easy_install requests easy_install coverage -nosetests jenkinsapi_tests --with-xunit --with-coverage --cover-html --cover-html-dir=$WORKSPACE/coverage_report --cover-package=jenkinsapi --verbose +test -z "$WORKSPACE" && WORKSPACE="`pwd`" +nosetests jenkinsapi_tests --with-xunit --with-coverage --cover-html --cover-html-dir="$WORKSPACE/coverage_report" --cover-package=jenkinsapi --verbose