Add make test-reqs and separate requirements file

Make local test setup easier
This commit is contained in:
Peter Parente
2017-12-16 23:06:23 -05:00
parent 240285841a
commit 36d1ebce40
3 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,6 @@ sudo: required
services:
- docker
install:
- pip install docker pytest requests
- make test-env
script:
- make build-test-all

View File

@@ -54,6 +54,9 @@ dev/%: PORT?=8888
dev/%: ## run a foreground container for a stack
docker run -it --rm -p $(PORT):8888 $(DARGS) $(OWNER)/$(notdir $@) $(ARGS)
test-reqs: # install libraries required to run the integration tests
pip install -r requirements-test.txt
test/%:
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test

3
requirements-test.txt Normal file
View File

@@ -0,0 +1,3 @@
docker
pytest
requests