Commit f1aa6989 authored by Peter Parente's avatar Peter Parente

Build docs, images when appropriate

parent ae5f7e10
...@@ -10,5 +10,5 @@ install: ...@@ -10,5 +10,5 @@ install:
- make dev-env - make dev-env
script: script:
- set -e - set -e
- make docs - if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
- make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1" - if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
\ No newline at end of file
...@@ -60,6 +60,12 @@ dev-env: ## install libraries required to build docs and run tests ...@@ -60,6 +60,12 @@ dev-env: ## install libraries required to build docs and run tests
docs: ## build HTML documentation docs: ## build HTML documentation
make -C docs html 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/%: ## run tests against a stack
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test @TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
......
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