mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 19:42:58 +00:00
Add make test-reqs and separate requirements file
Make local test setup easier
This commit is contained in:
@@ -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
|
||||||
|
3
Makefile
3
Makefile
@@ -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
|
||||||
|
|
||||||
|
3
requirements-test.txt
Normal file
3
requirements-test.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
docker
|
||||||
|
pytest
|
||||||
|
requests
|
Reference in New Issue
Block a user