forked from polvorin/zstd-erlang
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brujo Benavides
authored
Feb 26, 2021
1 parent
8915cca
commit a88d07b
Showing
7 changed files
with
113 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
language: erlang | ||
|
||
os: | ||
- linux | ||
|
||
otp_release: | ||
- 18.3 | ||
- 19.2 | ||
- 20.2 | ||
- 22.3 | ||
|
||
notifications: | ||
email: rtb-team+travis@adroll.com | ||
|
||
script: | ||
- rebar3 --version | ||
- erl -version | ||
- rebar3 format --verify | ||
- rebar3 test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[{elvis, | ||
[{config, | ||
[#{dirs => ["src"], | ||
filter => "*.erl", | ||
ruleset => erl_files}, | ||
#{dirs => ["test"], | ||
filter => "*.erl", | ||
ruleset => erl_files, | ||
rules => | ||
%% Variables in eunit macros are called, for instance, __V | ||
[{elvis_style, variable_naming_convention, #{regex => "^_?_?([A-Z][0-9a-zA-Z]*)_?$"}}]}, | ||
#{dirs => ["."], | ||
filter => "*rebar.config", | ||
ruleset => rebar_config}, | ||
#{dirs => ["."], | ||
filter => "elvis.config", | ||
ruleset => elvis_config}]}]}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,52 @@ | ||
{erl_opts, [debug_info]}. | ||
{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, | ||
debug_info]}. | ||
|
||
{minimum_otp_vsn, "21"}. | ||
|
||
{deps, []}. | ||
|
||
{pre_hooks, | ||
[{"(linux|darwin|solaris)", compile, "make MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"}, | ||
{"(linux|darwin|solaris)", compile, "make -C c_src"}, | ||
{"(freebsd)", compile, "gmake MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"}, | ||
{"(freebsd)", compile, "gmake -C c_src"}]}. | ||
[{"(linux|darwin|solaris)", compile, "make MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"}, | ||
{"(linux|darwin|solaris)", compile, "make -C c_src"}, | ||
{"(freebsd)", compile, "gmake MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"}, | ||
{"(freebsd)", compile, "gmake -C c_src"}]}. | ||
|
||
{post_hooks, | ||
[{"(linux|darwin|solaris)", clean, "make -C c_src clean"}, | ||
{"(linux|darwin|solaris)", clean, "make -C priv/zstd/lib clean"}, | ||
{"(freebsd)", clean, "gmake -C c_src clean"}, | ||
{"(freebsd)", clean, "gmake -C priv/zstd/lib clean"}]}. | ||
[{"(linux|darwin|solaris)", clean, "make -C c_src clean"}, | ||
{"(linux|darwin|solaris)", clean, "make -C priv/zstd/lib clean"}, | ||
{"(freebsd)", clean, "gmake -C c_src clean"}, | ||
{"(freebsd)", clean, "gmake -C priv/zstd/lib clean"}]}. | ||
|
||
{dialyzer, | ||
[{warnings, [no_return, error_handling]}, | ||
{plt_apps, top_level_deps}, | ||
{plt_extra_apps, []}, | ||
{plt_location, local}, | ||
{base_plt_apps, [erts, stdlib, kernel]}, | ||
{base_plt_location, global}]}. | ||
|
||
{xref_checks, | ||
[undefined_function_calls, | ||
locals_not_used, | ||
deprecated_function_calls, | ||
deprecated_functions]}. | ||
|
||
{alias, [{test, [format, lint, hank, xref, dialyzer, eunit]}]}. | ||
|
||
{project_plugins, | ||
[{rebar3_format, "~> 0.10.0"}, {rebar3_lint, "~> 0.3.2"}, {rebar3_hank, "~> 0.2.1"}]}. | ||
|
||
%% @todo Remove this when rebar3_hank reaches 0.3.0 | ||
{hank, [{ignore, [{"src/zstd.erl", unused_ignored_function_params}]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{application,zstd, | ||
[{description,"Zstd binding for Erlang/Elixir"}, | ||
{vsn,"0.2.0"}, | ||
{registered,[]}, | ||
{applications,[kernel,stdlib]}, | ||
{env,[]}, | ||
{modules,[]}, | ||
{maintainers,["Yuki Ito"]}, | ||
{licenses,["BSD"]}, | ||
{links,[{"GitHub","https://github.com/mururu/zstd-erlang"}]}]}. | ||
{application, | ||
zstd, | ||
[{description, "Zstd binding for Erlang/Elixir"}, | ||
{vsn, "0.2.0"}, | ||
{registered, []}, | ||
{applications, [kernel, stdlib]}, | ||
{env, []}, | ||
{modules, []}, | ||
{maintainers, ["Yuki Ito"]}, | ||
{licenses, ["BSD"]}, | ||
{links, [{"GitHub", "https://github.com/mururu/zstd-erlang"}]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters