Ensure Makefile still run tests properly / tests are run in container as expected

This commit is contained in:
Joffrey F 2015-08-25 16:58:01 -07:00
parent f9a540aa77
commit b5f1e64e8f
3 changed files with 6 additions and 5 deletions

View File

@ -10,6 +10,7 @@ dist
.tox
.coverage
html/*
tests/__pycache__
# Compiled Documentation
site/

View File

@ -13,13 +13,13 @@ build-py3:
test: unit-test integration-test unit-test-py3 integration-test-py3
unit-test: build
docker run docker-py py.test tests/test.py
docker run docker-py py.test tests/test.py tests/utils_test.py
unit-test-py3: build-py3
docker run docker-py3 py.test tests/test.py
docker run docker-py3 py.test tests/test.py tests/utils_test.py
integration-test: build
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py python tests/integration_test.py
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py py.test tests/integration_test.py
integration-test-py3: build-py3
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py3 python tests/integration_test.py
docker run -e NOT_ON_HOST=true -v `$(HOST_TMPDIR)`:/tmp -v /var/run/docker.sock:/var/run/docker.sock docker-py3 py.test tests/integration_test.py

View File

@ -33,7 +33,7 @@ import six
from six.moves import BaseHTTPServer
from six.moves import socketserver
from test import Cleanup
from .test import Cleanup
# FIXME: missing tests for
# export; history; insert; port; push; tag; get; load; stats