mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Only install tox in dev mode (#7557)
This commit is contained in:
parent
b805d8a844
commit
8da10f670b
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Resolve all frontend dependencies that the application requires to run.
|
# Resolve all frontend dependencies that the application requires to develop.
|
||||||
|
|
||||||
# Stop on errors
|
# Stop on errors
|
||||||
set -e
|
set -e
|
||||||
|
@ -1,26 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Resolve all server dependencies that the application requires to run.
|
# Resolve all server dependencies that the application requires to develop.
|
||||||
|
|
||||||
# Stop on errors
|
# Stop on errors
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
# Some requirements use parameter --only-binary only available
|
|
||||||
# in pip 7+. Upgrade if necessary.
|
|
||||||
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
|
|
||||||
echo "Upgrading pip..."
|
|
||||||
python3 -m pip install -U pip
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Installing test dependencies..."
|
echo "Installing test dependencies..."
|
||||||
python3 -m pip install -r requirements_test_all.txt
|
python3 -m pip install tox
|
||||||
|
|
||||||
REQ_DEV_STATUS=$?
|
|
||||||
|
|
||||||
if [ $REQ_DEV_STATUS -eq 0 ]
|
|
||||||
then
|
|
||||||
exit $REQ_STATUS
|
|
||||||
else
|
|
||||||
exit $REQ_DEV_STATUS
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user