mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 14:32:57 +00:00
Build docs, images when appropriate
This commit is contained in:
@@ -10,5 +10,5 @@ install:
|
||||
- make dev-env
|
||||
script:
|
||||
- set -e
|
||||
- make docs
|
||||
- make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"
|
||||
- if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
|
||||
- if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
|
6
Makefile
6
Makefile
@@ -60,6 +60,12 @@ dev-env: ## install libraries required to build docs and run tests
|
||||
docs: ## build HTML documentation
|
||||
make -C docs html
|
||||
|
||||
n-docs-diff: ## number of docs/ files changed since branch from master
|
||||
@git diff --name-only master...HEAD -- docs/ | wc -l | awk '{print $$1}'
|
||||
|
||||
n-other-diff: ## number of files outside docs/ changed since branch from master
|
||||
@git diff --name-only master...HEAD -- ':!docs/' | wc -l | awk '{print $$1}'
|
||||
|
||||
test/%: ## run tests against a stack
|
||||
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
|
||||
|
||||
|
Reference in New Issue
Block a user