Skip to content

Commit c1a6273

Browse files
committed
Update to rebar3
1 parent bbfdd7b commit c1a6273

File tree

7 files changed

+22
-251
lines changed

7 files changed

+22
-251
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: 9 additions & 25 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) skip_deps=true escriptize
14+
SMOKE_TEST=1 $(REBAR) skip_deps=true 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) skip_deps=true 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-
5640
include tools.mk

rebar

-188 KB
Binary file not shown.

rebar.config

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{require_otp_vsn, "R13B04|R14|R15|R16"}.
1+
{require_otp_vsn, "R16|17|18|19|20"}.
22
{cover_enabled, true}.
33
{edoc_opts, [{preprocess, true}]}.
44
%%{edoc_opts, [{doclet, edown_doclet}, {pretty_printer, erl_pp}]}.
@@ -11,23 +11,24 @@
1111
{eunit_opts, [verbose]}.
1212

1313
{deps, [
14+
gen_fsm_compat,
1415
{lager, ".*", {git, "git://github.com/basho/lager", {tag, "3.2.1"}}},
1516
{getopt, ".*", {git, "git://github.com/jcomellas/getopt", {tag, "v0.4"}}},
1617
{meck, "0.8.2", {git, "git://github.com/basho/meck.git", {tag, "0.8.2"}}},
1718
{mapred_verify, ".*", {git, "git://github.com/basho/mapred_verify", {branch, "master"}}},
18-
{riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {tag, "2.5.5"}}},
19-
{riakhttpc, ".*", {git, "git://github.com/nhs-riak/riak-erlang-http-client", {branch, "develop-2.2"}}},
20-
{kvc, "1.3.0", {git, "https://github.com/etrepum/kvc", {tag, "v1.3.0"}}},
19+
{riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {branch, "develop-3.0"}}},
20+
{riakhttpc, ".*", {git, "git://github.com/basho/riak-erlang-http-client", {branch, "develop-3.0"}}},
21+
{kvc, "1.7.0", {git, "https://github.com/etrepum/kvc", {tag, "v1.7.0"}}},
2122
{druuid, ".*", {git, "git://github.com/kellymclaughlin/druuid.git", {tag, "0.2"}}},
2223
{rebar_lock_deps_plugin, ".*", {git, "https://github.com/basho/rebar_lock_deps_plugin.git", {tag, "3.1.0p1"}}},
2324
{kv_index_tictactree, ".*", {git, "https://github.com/martinsumner/kv_index_tictactree.git", {branch, "master"}}}
2425
]}.
2526

2627
{escript_incl_apps, [goldrush, lager, getopt, riakhttpc, riakc, ibrowse, mochiweb, kvc, kv_index_tictactree]}.
2728
{escript_emu_args, "%%! -escript main riak_test_escript +K true +P 10000 -env ERL_MAX_PORTS 10000\n"}.
28-
{plugin_dir, "src"}.
29-
{plugins, [rebar_riak_test_plugin, rebar_lock_deps_plugin]}.
30-
{riak_test, [
31-
{test_paths, ["tests", "perf"]},
32-
{test_output, "ebin"}
33-
]}.
29+
%% {plugin_dir, "src"}.
30+
%% {plugins, [rebar_riak_test_plugin]}.
31+
%% {riak_test, [
32+
%% {test_paths, ["tests", "perf"]},
33+
%% {test_output, "ebin"}
34+
%% ]}.

rebar.config.lock

Lines changed: 0 additions & 65 deletions
This file was deleted.

rebar3

679 KB
Binary file not shown.

tools.mk

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)