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_asciidoc.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/plugin_asciidoc.mk') diff --git a/test/plugin_asciidoc.mk b/test/plugin_asciidoc.mk index c2c4318..29dfd07 100644 --- a/test/plugin_asciidoc.mk +++ b/test/plugin_asciidoc.mk @@ -9,7 +9,7 @@ asciidoc: $(ASCIIDOC_TARGETS) # Disable the Asciidoc tests requiring the DocBook toolchain # when Asciidoc is not installed. The toolchain is too heavy for CI. ifneq ($(shell which a2x),) -asciidoc-build: build clean +asciidoc-build: init $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ @@ -72,7 +72,7 @@ asciidoc-build: build clean $i "Check that AsciiDoc errors out" $t ! $(MAKE) -C $(APP) asciidoc $v -asciidoc-docs: build clean +asciidoc-docs: init $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ @@ -93,7 +93,7 @@ asciidoc-docs: build clean $t test -f $(APP)/doc/guide.pdf $t test -d $(APP)/doc/html/ -asciidoc-guide: build clean +asciidoc-guide: init $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ @@ -122,7 +122,7 @@ asciidoc-guide: build clean $t test ! -e $(APP)/doc/man3/ endif -asciidoc-install: build clean +asciidoc-install: init $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ @@ -150,7 +150,7 @@ asciidoc-install: build clean $i "Check that the documentation was installed properly" $t test -f $(APP)/installed/share/man3/erlang_mk.3.gz -asciidoc-manual: build clean +asciidoc-manual: init $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ -- cgit v1.2.3