#!/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
