mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +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:
|
||||
- docker
|
||||
install:
|
||||
- pip install docker pytest requests
|
||||
- make test-env
|
||||
script:
|
||||
- make build-test-all
|
||||
|
3
Makefile
3
Makefile
@@ -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
3
requirements-test.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
docker
|
||||
pytest
|
||||
requests
|
Reference in New Issue
Block a user