Skip to content

Commit

Permalink
Fixing build and deps
Browse files Browse the repository at this point in the history
Building can now be made with the makefile as it should.

Tests include PropEr to run, but regular builds do not include
PropEr as it's not needed for production use.
  • Loading branch information
ferd committed Oct 19, 2012
1 parent e6c6912 commit 72572a1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 23 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
.PHONY: all test clean
REBAR=./rebar REBAR=./rebar


all: all:
Expand All @@ -10,9 +11,8 @@ edoc:
@$(REBAR) doc @$(REBAR) doc


test: test:
@rm -rf .eunit @$(REBAR) -C rebar.test.config get-deps compile
@mkdir -p .eunit @$(REBAR) -C rebar.test.config ct skip_deps=true
@$(REBAR) skip_deps=true eunit


clean: clean:
@rm -rf deps/ ebin/ logs/ @rm -rf deps/ ebin/ logs/
Expand Down
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Also note that the dispatching of resources is done on a hashing basis and doesn


## How to build ## ## How to build ##


`$ ./rebar compile` `make`


## Running tests ## ## Running tests ##


Run the small Common Test suite with: Run the small Common Test suite with:


`$ ./rebar compile && ./rebar ct` `make test`


## How to use dispcount ## ## How to use dispcount ##


Expand Down
18 changes: 0 additions & 18 deletions rebar.config
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,21 +13,3 @@
%% Erlang compiler options %% Erlang compiler options
{erl_first_files, ["dispcount"]}. {erl_first_files, ["dispcount"]}.
{erl_opts, [debug_info, {i, "include"}]}. {erl_opts, [debug_info, {i, "include"}]}.

%% == Common Test ==

%% Option to pass extra parameters when launching Common Test
{ct_extra_params, "-boot start_sasl -pa ebin/"}.

%% == Dependencies ==

%% Where to put any downloaded dependencies. Default is "deps"
{deps_dir, "deps"}.

%% What dependencies we have, dependencies can be of 3 forms, an application
%% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
%% an application name, a version and the SCM details on how to fetch it (SCM
%% type, location and revision). Rebar currently supports git, hg, bzr and svn.
{deps, [
{proper, "1.0", {git, "https://github.com/manopapad/proper.git", "master"}}
]}.
33 changes: 33 additions & 0 deletions rebar.test.config
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,33 @@
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
%% This is a sample rebar.conf file that shows examples of some of rebar's
%% options.

%% == Core ==

%% Additional library directories to add to the code path
{lib_dirs, []}.

%% == Erlang Compiler ==

%% Erlang compiler options
{erl_first_files, ["dispcount"]}.
{erl_opts, [debug_info, {i, "include"}]}.

%% == Common Test ==

%% Option to pass extra parameters when launching Common Test
{ct_extra_params, "-boot start_sasl -pa ebin/"}.

%% == Dependencies ==

%% Where to put any downloaded dependencies. Default is "deps"
{deps_dir, "deps"}.

%% What dependencies we have, dependencies can be of 3 forms, an application
%% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
%% an application name, a version and the SCM details on how to fetch it (SCM
%% type, location and revision). Rebar currently supports git, hg, bzr and svn.
{deps, [
{proper, "1.0", {git, "https://github.com/manopapad/proper.git", "master"}}
]}.

0 comments on commit 72572a1

Please sign in to comment.