1
mirror of https://github.com/home-assistant/core synced 2024-10-04 07:58:43 +02:00
ha-core/script/lint_docker
Michaël Arnauts cb85128304 Speeds up lint and test in docker by keeping the cache between invocations. (#5177)
* 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.
2017-01-05 09:45:14 +01:00

14 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