1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Merge pull request #407 from balloob/testing-upgrade

Fix CI
This commit is contained in:
Paulus Schoutsen
2015-09-19 12:55:09 -07:00
8 changed files with 37 additions and 10 deletions
+5
View File
@@ -4,4 +4,9 @@
# designed to run on the continuous integration server.
script/test coverage
STATUS=$?
coveralls
exit $STATUS
+10 -1
View File
@@ -3,7 +3,16 @@
cd "$(dirname "$0")/.."
echo "Checking style with flake8..."
flake8 homeassistant
flake8 --exclude www_static homeassistant
STATUS=$?
echo "Checking style with pylint..."
pylint homeassistant
if [ $STATUS -eq 0 ]
then
exit $?
else
exit $STATUS
fi
+11 -2
View File
@@ -7,10 +7,19 @@ cd "$(dirname "$0")/.."
script/lint
STATUS=$?
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test --cov homeassistant tests
py.test --cov --cov-report=
else
py.test tests
py.test
fi
if [ $STATUS -eq 0 ]
then
exit $?
else
exit $STATUS
fi