Commit 36d1ebce authored by Peter Parente's avatar Peter Parente

Add make test-reqs and separate requirements file

Make local test setup easier
parent 24028584
...@@ -5,6 +5,6 @@ sudo: required ...@@ -5,6 +5,6 @@ sudo: required
services: services:
- docker - docker
install: install:
- pip install docker pytest requests - make test-env
script: script:
- make build-test-all - make build-test-all
...@@ -54,6 +54,9 @@ dev/%: PORT?=8888 ...@@ -54,6 +54,9 @@ dev/%: PORT?=8888
dev/%: ## run a foreground container for a stack dev/%: ## run a foreground container for a stack
docker run -it --rm -p $(PORT):8888 $(DARGS) $(OWNER)/$(notdir $@) $(ARGS) 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/%:
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test @TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
......
docker
pytest
requests
\ No newline at end of file
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