Kaydet (Commit) 4d0416ac authored tarafından Ben Firshman's avatar Ben Firshman

Add Makefile for running tests in Docker

It assumes you've got Docker running on /var/run/docker.sock, but
that should be the case on both Linux and in Boot2Docker.
Signed-off-by: 's avatarBen Firshman <ben@firshman.co.uk>
üst 695a894a
.PHONY: all build test integration-test unit-test
all: test
build:
docker build -t docker-py .
test: unit-test integration-test
unit-test: build
docker run docker-py python tests/test.py
integration-test: build
docker run -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment