#!/bin/sh
# Executes the tests with tox in a docker container.

# 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 py35