Skip to content

Commit 5aa0192

Browse files
authored
Merge pull request #1310 from Quviq/otp20_and_rebar3
Otp20 and rebar3
2 parents bbfdd7b + bcdf0f1 commit 5aa0192

File tree

111 files changed

+321
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+321
-566
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
deps
21
ebin
32
log
43
riak_test
@@ -23,4 +22,5 @@ dialyzer_unhandled_warnings
2322
dialyzer_warnings
2423
.idea
2524
riak_test.iml
26-
25+
_build/
26+
rebar.lock

Makefile

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,34 @@ APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
77
observer wx gs
88
PLT = $(HOME)/.riak-test_dialyzer_plt
99

10+
REBAR=./rebar3
11+
1012
all: deps compile
11-
./rebar skip_deps=true escriptize
12-
SMOKE_TEST=1 ./rebar skip_deps=true escriptize
13+
$(REBAR) escriptize
14+
SMOKE_TEST=1 $(REBAR) escriptize
1315

1416
deps:
1517
$(if $(HEAD_REVISION),$(warning "Warning: you have checked out a tag ($(HEAD_REVISION)) and should use the locked-deps target"))
16-
./rebar get-deps
18+
$(REBAR) get-deps
1719

1820
docsclean:
1921
@rm -rf doc/*.png doc/*.html doc/*.css edoc-info
2022

2123
compile: deps
22-
./rebar compile
24+
$(REBAR) compile
2325

2426
clean:
25-
@./rebar clean
27+
@$(REBAR) clean
2628

2729
distclean: clean
2830
@rm -rf riak_test deps
2931

3032
quickbuild:
31-
./rebar skip_deps=true compile
32-
./rebar escriptize
33-
34-
##
35-
## Lock Targets
36-
##
37-
## see https://github.com/seth/rebar_lock_deps_plugin
38-
lock: deps compile
39-
./rebar lock-deps
40-
41-
locked-all: locked-deps compile
42-
43-
locked-deps:
44-
@echo "Using rebar.config.lock file to fetch dependencies"
45-
./rebar -C rebar.config.lock get-deps
33+
$(REBAR) compile
34+
$(REBAR) escriptize
4635

4736
##################
4837
# Dialyzer targets
4938
##################
5039

51-
# Legacy target left for compatibility with any existing automation
52-
# scripts ...
53-
clean_plt:
54-
cleanplt
55-
56-
include tools.mk
40+
# include tools.mk

intercepts/hashtree_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(hashtree_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424

2525
sleep_update_perform(State) ->

intercepts/init_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(init_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424
-define(M, init_orig).
2525

intercepts/intercept.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
%% because some of these private functions are useful in their own
2424
%% right.
2525
-export([add/3, add/4, clean/1]).
26-
-compile(export_all).
26+
-compile([export_all, nowarn_export_all]).
2727

2828
-type abstract_code() :: term().
2929
-type form() :: term().

intercepts/riak_core_broadcast_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(riak_core_broadcast_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424

2525
global_send(Msg, Peers) when is_list(Peers) ->

intercepts/riak_core_connection_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(riak_core_connection_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424

2525
-define(M, riak_core_connection_orig).

intercepts/riak_core_console_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
%
1919
%% -------------------------------------------------------------------
2020
-module(riak_core_console_intercepts).
21-
-compile(export_all).
21+
-compile([export_all, nowarn_export_all]).
2222
-include("intercept.hrl").
2323

2424
%% See tests/riak_admin_console_tests.erl for more info

intercepts/riak_core_handoff_sender_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(riak_core_handoff_sender_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424
-define(M, riak_core_handoff_sender_orig).
2525

intercepts/riak_core_ring_manager_intercepts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%%-------------------------------------------------------------------
2020

2121
-module(riak_core_ring_manager_intercepts).
22-
-compile(export_all).
22+
-compile([export_all, nowarn_export_all]).
2323
-include("intercept.hrl").
2424

2525
noop_ring_trans(_Fun, _Args) ->

0 commit comments

Comments
 (0)