diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ff177a1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: erlang +otp_release: + - R15B02 + - R14B04 + - R13B04 +script: "./rebar compile && ./rebar xref && ./rebar skip_deps=true eunit" diff --git a/rebar b/rebar index 95ebacc..5c7457d 100755 Binary files a/rebar and b/rebar differ diff --git a/rebar.config b/rebar.config index 6f7258c..a569cd3 100644 --- a/rebar.config +++ b/rebar.config @@ -1,38 +1,9 @@ %%% -*- mode: erlang -*- -%% Require OTP version R13B04, R14, or R15 {require_otp_vsn, "R13B04|R14|R15"}. -%% Depends -{deps, [{meck, "", {git, "git://github.com/norton/meck.git"}} - , {edown, "", {git, "git://github.com/norton/edown.git"}} - , {asciiedoc, "", {git, "git://github.com/norton/asciiedoc.git"}} - , {qc, "", {git, "git://github.com/norton/qc.git"}} - ]}. +{erl_opts, [warnings_as_errors, {platform_define, "R13B04|R14|R15A", 'old_callbacks'}]}. -%% Erlang compiler options -{erl_opts, [warnings_as_errors - , {platform_define, "R13B04|R14|R15A", 'old_callbacks'} - ]}. -%% Erlang edoc options for asciiedown_doclet -{edoc_opts, [{doclet, asciiedown_doclet} - , {app_default, "http://www.erlang.org/doc/man"} - , {new, true} - , {packages, false} - , {stylesheet, ""} % don't copy stylesheet.css - , {image, ""} % don't copy erlang.png - , {top_level_readme, {"./README.md", "https://github.com/norton/gen_ets"}} - ]}. +{xref_checks, [undefined_function_calls, deprecated_function_calls]}. -%% Erlang edoc options for asciiedoc_doclet -%% {edoc_opts, [{doclet, asciiedoc_doclet} -%% , {app_default, "http://www.erlang.org/doc/man"} -%% , {new, true} -%% , {packages, false} -%% ]}. - -%% Test compiler options -{eunit_compile_opts, []}. - -%% EUnit options -{eunit_opts, [verbose]}. +{deps, [{qc, "", {git, "git://github.com/norton/qc.git"}}]}.