* Add a volume to store the tox cache on the host. This gives quite some speed boost when running lint_docker and test_docker. * Only map .tox directory for cache.
13 lines
305 B
Bash
Executable file
13 lines
305 B
Bash
Executable file
#!/bin/sh
|
|
# Execute lint in a docker container to spot code mistakes.
|
|
|
|
# Stop on errors
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
docker build -t home-assistant-test -f virtualization/Docker/Dockerfile.dev .
|
|
docker run --rm \
|
|
-v `pwd`/.tox/:/usr/src/app/.tox/ \
|
|
-t -i home-assistant-test \
|
|
tox -e lint
|