mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 03:03:17 +01:00
Fix CI
This commit is contained in:
@@ -4,4 +4,9 @@
|
||||
# designed to run on the continuous integration server.
|
||||
|
||||
script/test coverage
|
||||
|
||||
STATUS=$?
|
||||
|
||||
coveralls
|
||||
|
||||
exit $STATUS
|
||||
|
||||
11
script/lint
11
script/lint
@@ -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
|
||||
|
||||
13
script/test
13
script/test
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user