Skip to content

Commit

Permalink
Makefile: support testing of individual modules
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Nov 20, 2016
1 parent 72b64b3 commit 2e8ad28
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ run-webui :
check : assembly/.gradle-test-dependencies assembly/.maven-test-dependencies

.PHONY : check-sbs
check-sbs : modules/sbs/braille/.gradle-install-dependencies modules/sbs/braille/.maven-install-dependencies
cd modules/sbs/braille && \
$(MVN) clean test | $(MVN_LOG)
check-sbs : check-modules/sbs/braille

.PHONY : compile
compile : assembly/.gradle-install-dependencies assembly/.maven-install-dependencies
Expand All @@ -81,6 +79,14 @@ $(addprefix compile-,$(MAVEN_MODULES)) : compile-% : %/.gradle-install-dependenc
mv .maven-to-install .maven-to-test-dependents; \
fi

.PHONY : $(addprefix check-,$(MAVEN_MODULES))
$(addprefix check-,$(MAVEN_MODULES)) : check-% : %/.gradle-install-dependencies %/.maven-install-dependencies
cd $(dir $<) && \
$(MVN) clean test && \
if [ -e .maven-to-test ]; then \
rm .maven-to-test; \
fi

.PHONY : $(addsuffix /.maven-test-dependencies,assembly $(MAVEN_MODULES))
$(addsuffix /.maven-test-dependencies,assembly $(MAVEN_MODULES)) : %/.maven-test-dependencies : %/.maven-dependencies-to-test
if [ -s $< ]; then \
Expand Down

0 comments on commit 2e8ad28

Please sign in to comment.