diff --git a/.travis.yml b/.travis.yml index 83a16f1..4b70972 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: erlang -notifications: - webhooks: http://basho-engbot.herokuapp.com/travis?key=74319455557abd99a9de585cf48bc99577cbac1c - email: eng@basho.com otp_release: - - R15B01 - - R15B - - R14B04 - - R14B03 + - 20.3.8 + - 21.3 + - 22.3 +script: + - chmod u+x rebar3 + - ./rebar3 do upgrade, compile, xref, dialyzer, eunit diff --git a/rebar.config b/rebar.config index 0357503..ce7477b 100644 --- a/rebar.config +++ b/rebar.config @@ -24,48 +24,11 @@ warn_export_all, warn_export_vars, warn_obsolete_guard, - warn_unused_import + warn_unused_import, + warnings_as_errors ]}. {profiles, [ - {check, [ - {dialyzer, [ - {warnings, [ - error_handling, - race_conditions, - unknown, - unmatched_returns - ]} - ]}, - {erl_opts, [ - debug_info, - warnings_as_errors, - {d, 'BASHO_CHECK'} - ]}, - {xref_checks, [ - deprecated_function_calls, - deprecated_functions, - locals_not_used, - undefined_function_calls, - undefined_functions - ]} - ]}, - {docs, [ - {edoc_opts, [ - {app_default, "http://www.erlang.org/doc/man"}, - {preprocess, true}, - {macros, [ - {'EDOC', true}, - {'BASHO_DOCS', true} - ]} - ]} - ]}, - {prod, [ - {erl_opts, [ - warnings_as_errors, - {d, 'BASHO_PROD'} - ]} - ]}, {test, [ {cover_enabled, true}, {erl_opts, [ @@ -76,33 +39,12 @@ warnings_as_errors, {d, 'BASHO_TEST'} ]} - ]}, - {validate, [ - {erl_opts, [ - strong_validation, - no_auto_import, - warn_bif_clash, - warn_deprecated_function, - warn_deprecated_type, - warn_export_all, - warn_export_vars, - warn_missing_spec, - warn_missing_spec_all, - warn_obsolete_guard, - warn_shadow_vars, - warn_untyped_record, - warn_unused_function, - warn_unused_import, - warn_unused_record, - warn_unused_vars, - {d, 'BASHO_VALIDATE'} - ]} ]} ]}. -{plugins, [ - {basho_rebar_tools, - {git, "https://github.com/basho/basho_rebar_tools.git", - {branch, "master"} }} -]}. - +{xref_checks,[ + undefined_function_calls, + undefined_functions, + locals_not_used, + deprecated_function_calls, + deprecated_functions]}. diff --git a/rebar3 b/rebar3 new file mode 100755 index 0000000..e550663 Binary files /dev/null and b/rebar3 differ