diff --git a/run_tests.sh b/run_tests.sh deleted file mode 100755 index 899c7f8cba3..00000000000 --- a/run_tests.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -pylint homeassistant -flake8 homeassistant --exclude bower_components,external -python3 -m unittest discover tests diff --git a/build_frontend b/scripts/build_frontend similarity index 90% rename from build_frontend rename to scripts/build_frontend index 415ee2e894d..4ef3e812784 100755 --- a/build_frontend +++ b/scripts/build_frontend @@ -1,3 +1,8 @@ +# If current pwd is scripts, go 1 up. +if [ ${PWD##*/} == "scripts" ]; then + cd .. +fi + # To build the frontend, you need node, bower and vulcanize # npm install -g bower vulcanize diff --git a/scripts/check_style b/scripts/check_style new file mode 100755 index 00000000000..d7dbae02baf --- /dev/null +++ b/scripts/check_style @@ -0,0 +1,7 @@ +# If current pwd is scripts, go 1 up. +if [ ${PWD##*/} == "scripts" ]; then + cd .. +fi + +pylint homeassistant +flake8 homeassistant --exclude bower_components,external diff --git a/scripts/run_tests b/scripts/run_tests new file mode 100755 index 00000000000..8d1c6aed114 --- /dev/null +++ b/scripts/run_tests @@ -0,0 +1,6 @@ +# If current pwd is scripts, go 1 up. +if [ ${PWD##*/} == "scripts" ]; then + cd .. +fi + +python3 -m unittest discover tests diff --git a/scripts/update b/scripts/update new file mode 100755 index 00000000000..febb50c00b6 --- /dev/null +++ b/scripts/update @@ -0,0 +1,7 @@ +# If current pwd is scripts, go 1 up. +if [ ${PWD##*/} == "scripts" ]; then + cd .. +fi + +git pull --recurse-submodules=yes +git submodule update --init --recursive