File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ install:
1010 - make dev-env
1111script :
1212 - set -e
13- - make docs
14- - make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"
13+ - if [ $( make n- docs-diff) -ne 0 ]; then make docs; fi;
14+ - if [ $( make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ dev-env: ## install libraries required to build docs and run tests
6060docs : # # build HTML documentation
6161 make -C docs html
6262
63+ n-docs-diff : # # number of docs/ files changed since branch from master
64+ @git diff --name-only master...HEAD -- docs/ | wc -l | awk ' {print $$1}'
65+
66+ n-other-diff : # # number of files outside docs/ changed since branch from master
67+ @git diff --name-only master...HEAD -- ' :!docs/' | wc -l | awk ' {print $$1}'
68+
6369test/% : # # run tests against a stack
6470 @TEST_IMAGE=" $( OWNER) /$( notdir $@ ) " pytest test
6571
You can’t perform that action at this time.
0 commit comments