Skip to content

Commit 357f383

Browse files
author
turtled
committed
Fix make eunit fail
1 parent 33f05c1 commit 357f383

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
CT_NODE_NAME = [email protected]
44

5-
REBAR := rebar3
5+
REBAR := $(CURDIR)/rebar3
6+
7+
REBAR_URL := https://s3.amazonaws.com/rebar3/rebar3
68

79
all: compile
810

@@ -32,3 +34,9 @@ cover:
3234
dialyzer:
3335
$(REBAR) dialyzer
3436

37+
.PHONY: $(REBAR)
38+
$(REBAR):
39+
ifneq ($(wildcard rebar3),rebar3)
40+
@curl -Lo rebar3 $(REBAR_URL) || wget $(REBAR_URL)
41+
endif
42+
@chmod a+x rebar3

rebar.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
{xref_checks, [undefined_function_calls]}.
2727

28-
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
29-
3028
{dialyzer_base_plt_apps,
3129
[kernel,
3230
stdlib,

rebar3

815 KB
Binary file not shown.

rebar3.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
setlocal
3+
set rebarscript=%~f0
4+
escript.exe "%rebarscript:.cmd=%" %*

0 commit comments

Comments
 (0)