Unify docs, test dev env

This commit is contained in:
Peter Parente
2017-12-29 20:29:05 -05:00
parent 73dc38efc6
commit a54ce40513
4 changed files with 20 additions and 6 deletions

View File

@@ -54,10 +54,10 @@ 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
dev-env: # install libraries required to build docs and run tests
conda env create -f environment.yml
test/%:
test/%: ## run tests against a stack
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
test/base-notebook: ## test supported options in the base notebook

13
environment.yml Normal file
View File

@@ -0,0 +1,13 @@
name: docker-stacks
channels:
- conda-forge
dependencies:
- python=3.6
- pytest
- requests
- sphinx>=1.6
- sphinx_rtd_theme
- pip:
- docker
- jupyter_alabaster_theme
- recommonmark==0.4.0

4
readthedocs.yml Normal file
View File

@@ -0,0 +1,4 @@
conda:
file: environment.yml
python:
version: 3

View File

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