From a3cd50792d0ed1c5dfee66ff79ee7117057e9970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 7 Dec 2018 19:40:02 +0100 Subject: Autopatch: allow configuring REBAR_GIT and REBAR_COMMIT And use this in the tests to fetch Rebar only once and then clone from the local repository. This should speed up tests a little. --- test/plugin_escript.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/plugin_escript.mk') diff --git a/test/plugin_escript.mk b/test/plugin_escript.mk index 4a3d7a0..f80db46 100644 --- a/test/plugin_escript.mk +++ b/test/plugin_escript.mk @@ -6,7 +6,7 @@ ESCRIPT_TARGETS = $(call list_targets,escript) escript: $(ESCRIPT_TARGETS) -escript-build: build clean +escript-build: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -34,7 +34,7 @@ escript-build: build clean $i "Check that the escript was removed" $t test ! -e $(APP)/$(APP) -escript-build-deps: build clean +escript-build-deps: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -65,7 +65,7 @@ escript-build-deps: build clean $i "Check that the escript does not contain the build dependency" $t ! zipinfo $(APP)/$(APP) 2> /dev/null | grep -q lfe -escript-deps: build clean +escript-deps: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -90,7 +90,7 @@ escript-deps: build clean $i "Check that the escript contains the dependency" $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q ranch -escript-deps-with-deps: build clean +escript-deps-with-deps: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -120,7 +120,7 @@ escript-deps-with-deps: build clean $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q cowlib $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q ranch -escript-distclean: build clean +escript-distclean: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -148,7 +148,7 @@ escript-distclean: build clean $t test ! -f $(APP)/$(APP) $t test ! -f $(APP)/real-escript -escript-extra: build clean +escript-extra: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ -- cgit v1.2.3