Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Close #11] Euen.11.rebar3 #12

Merged
merged 3 commits into from
May 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed priv/fusco_drv.so
Binary file not shown.
91 changes: 88 additions & 3 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,91 @@
{erl_opts, [debug_info,
{platform_define, "R1[45]", no_binary_to_integer}]}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

%% == Erlang Compiler ==

%% Erlang compiler options
{erl_opts, [ warn_unused_vars
, warn_export_all
, warn_shadow_vars
, warn_unused_import
, warn_unused_function
, warn_bif_clash
, warn_unused_record
, warn_deprecated_function
, warn_obsolete_guard
, strict_validation
, warn_export_vars
, warn_exported_vars
, warn_missing_spec
, warn_untyped_record
, debug_info
, {platform_define, "R1[45]", no_binary_to_integer}]}.

{profiles, [
{test, [
{deps, [ {katana_test, {git, "https://github.com/inaka/katana-test.git", {tag, "0.0.5"}}}
, {mixer, {git, "https://github.com/inaka/mixer.git", {tag, "0.1.5"}}}
, {meck, "0.8.4"}
, {xref_runner, {git, "https://github.com/inaka/xref_runner", {tag, "0.2.6"}}}
]}
]},
{shell, [
{deps, [
{sync, {git, "https://github.com/rustyio/sync.git", {ref, "9c78e7b"}}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this dependency if possible, (maybe leave it in as a recommended and commented entry?)

]}
]}
]}.

%% == Common Test ==

{ct_compile_opts, [ warn_unused_vars
, warn_export_all
, warn_shadow_vars
, warn_unused_import
, warn_unused_function
, warn_bif_clash
, warn_unused_record
, warn_deprecated_function
, warn_obsolete_guard
, strict_validation
, warn_export_vars
, warn_exported_vars
, warn_missing_spec
, warn_untyped_record
, debug_info]}.

{ct_opts, [ {sys_config, ["test/test.config"]}
, {logdir, "./logs"}
, {verbose, true}
]}.

%% == Cover ==

{cover_enabled, true}.

{cover_opts, [verbose]}.

{cover_export_enabled, true}.

{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.

%% == Dependencies ==

{deps, []}.

%% == Dialyzer ==

{dialyzer, [ {warnings, [ no_return
, unmatched_returns
, error_handling
]}
, {plt_apps, top_level_deps}
, {plt_extra_apps, []}
, {plt_location, local}
, {base_plt_apps, [stdlib, kernel]}
, {base_plt_location, global}]}.

%% == Shell ==

{shell, [{apps, [sync]}]}.

1 change: 1 addition & 0 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[].
5 changes: 4 additions & 1 deletion src/fusco.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
{modules, []},
{registered, []},
{applications, [kernel, stdlib, ssl]},
{env, []}
{env, []},
{licenses, ["Apache 2.0"]},
{links, [{"Github", "https://github.com/esl/fusco"}]},
{build_tools, ["rebar3"]}
]}.

18 changes: 18 additions & 0 deletions test/fusco_meta_SUITE.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-module(fusco_meta_SUITE).

-include_lib("mixer/include/mixer.hrl").
-mixin([{ktn_meta_SUITE
, [ all/0
, xref/1
, dialyzer/1
, elvis/1
]
}]).

-export([init_per_suite/1]).

-type config() :: [{atom(), term()}].

-spec init_per_suite(config()) -> config().
init_per_suite(Config) ->
[{application, fusco} | Config].