From 35ef3631b4aa1850a10993c683b9f6253e089c3d Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 29 Jun 2012 17:29:03 +0200 Subject: Refactor ci support --- Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1fda878..83eb446 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -.PHONY: dialyzer_warnings xref_warnings +.PHONY: dialyzer_warnings xref_warnings deps test + +REBAR=$(PWD)/rebar +RETEST=$(PWD)/deps/retest/retest +EUNIT_DIR=$(PWD)/.eunit +RETEST_DIR=$(PWD)/.rt.work all: ./bootstrap @@ -9,7 +14,7 @@ clean: debug: @./bootstrap debug -check: debug xref dialyzer +check: debug xref dialyzer deps test xref: @./rebar xref @@ -24,4 +29,12 @@ dialyzer_warnings: binary: VSN = $(shell ./rebar -V) binary: clean all cp rebar ../rebar.wiki/rebar - (cd ../rebar.wiki && git commit -m "Update $(VSN)" rebar) \ No newline at end of file + (cd ../rebar.wiki && git commit -m "Update $(VSN)" rebar) + +deps: + REBAR_EXTRA_DEPS=1 ./rebar get-deps + cd deps/retest && $(REBAR) compile escriptize + +test: + $(REBAR) eunit + $(RETEST) inttest -- cgit v1.1