[#90] Clean up tests before each target to avoid failure in Mac OS X

This commit is contained in:
Juan Facorro 2020-05-20 11:19:54 +02:00
parent 1b5a16cc40
commit 904ae086c3

View File

@ -23,6 +23,9 @@ distclean:
$(RM) doc/stylesheet.css
$(RM) -r logs
.PHONY: clean-tests
clean-tests:
@ rm -rf _build/test/lib
# Docs
.PHONY: docs
@ -53,10 +56,14 @@ test: eunit ct xref dialyzer cover
.PHONY: eunit
eunit:
@ $(MAKE) clean-tests
$(REBAR) eunit
# @ rm -rf _build
.PHONY: ct
ct: test/JSON-Schema-Test-Suite/tests
@ $(MAKE) clean-tests
$(REBAR) ct
.PHONY: xref
@ -73,4 +80,5 @@ elvis:
.PHONY: cover
cover:
@ $(MAKE) clean-tests
$(REBAR) cover -v