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/core_compat.mk | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/core_compat.mk') diff --git a/test/core_compat.mk b/test/core_compat.mk index c8de73b..e6dbd92 100644 --- a/test/core_compat.mk +++ b/test/core_compat.mk @@ -11,7 +11,7 @@ REBAR3_BINARY = https://s3.amazonaws.com/rebar3/rebar3 core-compat: $(CORE_COMPAT_TARGETS) -core-compat-auto-rebar: build clean +core-compat-auto-rebar: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -53,7 +53,7 @@ core-compat-auto-rebar: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar compile $v -core-compat-rebar: build clean +core-compat-rebar: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -92,7 +92,7 @@ core-compat-rebar: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar compile $v -core-compat-rebar-deps-git: build clean +core-compat-rebar-deps-git: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -124,7 +124,7 @@ core-compat-rebar-deps-git: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar get-deps compile $v -core-compat-rebar-deps-hex: build clean +core-compat-rebar-deps-hex: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -156,7 +156,7 @@ core-compat-rebar-deps-hex: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar3 compile $v -core-compat-rebar-deps-pkg: build clean +core-compat-rebar-deps-pkg: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -188,7 +188,7 @@ core-compat-rebar-deps-pkg: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar get-deps compile $v -core-compat-rebar-erlc-opts: build clean +core-compat-rebar-erlc-opts: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -237,7 +237,7 @@ core-compat-rebar-erlc-opts: build clean $i "Use rebar to build the application" $t cd $(APP) && ./rebar compile $v -core-compat-rebar-pt: build clean +core-compat-rebar-pt: init $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ -- cgit v1.2.3