From 9abd34b98216448d8093c17ce59c39cb1afb2700 Mon Sep 17 00:00:00 2001 From: Magnus Klaar Date: Mon, 23 Apr 2012 18:12:05 +0200 Subject: [PATCH] Add project files --- LICENSE | 13 +++++++++++++ Makefile | 37 +++++++++++++++++++++++++++++++++++++ rebar.config | 8 ++++++++ 3 files changed, 58 insertions(+) create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 rebar.config diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..812980e --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2012, Magnus Klaar + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..616e9cd --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# See LICENSE for licensing information. + +DIALYZER = dialyzer +REBAR = rebar +APPNAME = goldrush + +all: app + +app: deps + @$(REBAR) compile + +deps: + @$(REBAR) get-deps + +clean: + @$(REBAR) clean + rm -f test/*.beam + rm -f erl_crash.dump + +tests: clean app eunit ct + +eunit: + @$(REBAR) eunit skip_deps=true + +ct: + @$(REBAR) ct skip_deps=true + +build-plt: + @$(DIALYZER) --build_plt --output_plt .$(APPNAME)_dialyzer.plt \ + --apps kernel stdlib sasl inets crypto public_key ssl + +dialyze: + @$(DIALYZER) --src src --plt .$(APPNAME)_dialyzer.plt --no_native \ + -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs + +docs: + @$(REBAR) doc skip_deps=true diff --git a/rebar.config b/rebar.config new file mode 100644 index 0000000..55fe764 --- /dev/null +++ b/rebar.config @@ -0,0 +1,8 @@ +{cover_enabled, true}. +{eunit_opts, [{report, {eunit_surefire, [{dir, "."}]}}]}. +{erl_opts, [ +%% bin_opt_info, +%% warn_missing_spec, + warnings_as_errors, + warn_export_all +]}.