mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Make CI erros more prominent
This commit is contained in:
parent
4a421e25b0
commit
7dc1499386
@ -8,9 +8,7 @@ python:
|
|||||||
- 3.4
|
- 3.4
|
||||||
- 3.5
|
- 3.5
|
||||||
install:
|
install:
|
||||||
# Validate requirements_all.txt on Python 3.4
|
- "true"
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then python3 setup.py -q develop 2>/dev/null; tput setaf 1; script/gen_requirements_all.py validate; tput sgr0; fi
|
|
||||||
- script/bootstrap_server
|
|
||||||
script:
|
script:
|
||||||
- script/cibuild
|
- script/cibuild
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -5,6 +5,28 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PYTHON_VERSION" = "3.5" ]; then
|
||||||
|
echo "Verifying requirements_all.txt..."
|
||||||
|
python3 setup.py -q develop 2> /dev/null
|
||||||
|
tput setaf 1
|
||||||
|
script/gen_requirements_all.py validate
|
||||||
|
VERIFY_REQUIREMENTS_STATUS=$?
|
||||||
|
tput sgr0
|
||||||
|
else
|
||||||
|
VERIFY_REQUIREMENTS_STATUS=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$VERIFY_REQUIREMENTS_STATUS" != "0" ]; then
|
||||||
|
exit $VERIFY_REQUIREMENTS_STATUS
|
||||||
|
fi
|
||||||
|
|
||||||
|
script/bootstrap_server > /dev/null
|
||||||
|
DEP_INSTALL_STATUS=$?
|
||||||
|
|
||||||
|
if [ "$DEP_INSTALL_STATUS" != "0" ]; then
|
||||||
|
exit $DEP_INSTALL_STATUS
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then
|
if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then
|
||||||
NO_LINT=1
|
NO_LINT=1
|
||||||
fi
|
fi
|
||||||
|
14
script/test
14
script/test
@ -5,13 +5,6 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
if [ "$NO_LINT" = "1" ]; then
|
|
||||||
LINT_STATUS=0
|
|
||||||
else
|
|
||||||
script/lint
|
|
||||||
LINT_STATUS=$?
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
|
|
||||||
if [ "$1" = "coverage" ]; then
|
if [ "$1" = "coverage" ]; then
|
||||||
@ -22,6 +15,13 @@ else
|
|||||||
TEST_STATUS=$?
|
TEST_STATUS=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$NO_LINT" = "1" ]; then
|
||||||
|
LINT_STATUS=0
|
||||||
|
else
|
||||||
|
script/lint
|
||||||
|
LINT_STATUS=$?
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $LINT_STATUS -eq 0 ]
|
if [ $LINT_STATUS -eq 0 ]
|
||||||
then
|
then
|
||||||
exit $TEST_STATUS
|
exit $TEST_STATUS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user