Attempt to fix CI scripts

This commit is contained in:
Paulus Schoutsen
2015-09-20 11:00:35 -07:00
parent 19d40612e6
commit 0d09e2e1df
3 changed files with 32 additions and 8 deletions

View File

@@ -7,19 +7,21 @@ cd "$(dirname "$0")/.."
script/lint
STATUS=$?
LINT_STATUS=$?
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test --cov --cov-report=
TEST_STATUS=$?
else
py.test
TEST_STATUS=$?
fi
if [ $STATUS -eq 0 ]
if [ $LINT_STATUS -eq 0 ]
then
exit $?
exit $TEST_STATUS
else
exit $STATUS
exit $LINT_STATUS
fi