%% -*- mode: erlang; flycheck-mode: nil -*-
{erl_opts, [debug_info]}.
{deps, [{erlando, "3.1.1"}]}.
{project_plugins,
 [{coveralls, "1.4.0"},
  {rebar3_lint, "0.1.9"}]}.

{xref_checks,
 [undefined_function_calls, undefined_functions, locals_not_used,
  deprecated_function_calls, deprecated_functions]}.

{profiles,
 [{test,
   [{deps,
     [{elli, "3.0.0"}]}]},
  {docs,
   [{erl_opts, [{i, ["_build/test/lib"]}]},
    {deps, [{edown, "0.8.1"}]},
    {edoc_opts,
     [
      {dir, "doc"},
      {doclet, edown_doclet},
      {overview, "doc/overview.md"},
      {doc_path,
       ["http://raw.github.com/elli-lib/elli/develop/doc",
        "http://raw.github.com/elli-lib/elli_cache/develop/doc"
       ]},
      {top_level_readme,
       {"./README.md", "https://github.com/elli-lib/elli_cache", "develop"}}
     ]}]}]}.

{post_hooks,
 %% NOTE: Assumes GNU sed on darwin
 [{"(darwin|linux|solaris|freebsd|netbsd|openbsd)", edoc,
   "sed -i '"
   "s/https\\?:\\/\\/raw\\.\\(github.com\\/elli-lib\\/elli\\)/https:\\/\\/\\1\\/blob/g"
   "' doc*/*.md"}]}.

{provider_hooks, [{pre, [{eunit, lint}]}]}.

{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_excl_mods, []}.

{coveralls_coverdata, "_build/test/cover/eunit.coverdata"}.
{coveralls_service_name, "travis-ci"}.

{dialyzer,
 %% TODO: underspecs, specdiffs
 [{warnings, [no_contracts, unmatched_returns, error_handling]}]}.
