diff --git a/.gitignore b/.gitignore index e49fa91..187ea54 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ ebin/ priv/ deps/ *.o +*.d .eunit/ +_build/ +rebar.lock diff --git a/README.md b/README.md index 46cada6..7d4d785 100644 --- a/README.md +++ b/README.md @@ -144,22 +144,22 @@ Building -------- Dependencies: - rebar get-deps + rebar3 get-deps Build: - rebar compile + rebar3 compile Testing ------- Automated: - rebar eunit skip_deps=true + rebar3 eunit skip_deps=true Automated with timing details: - rebar eunit skip_deps=true -v + rebar3 eunit skip_deps=true -v In the `test/` directory there is a short script to verify error conditions. You can load test error conditions with: diff --git a/rebar.config b/rebar.config index 27914d0..5cfdf56 100644 --- a/rebar.config +++ b/rebar.config @@ -3,5 +3,17 @@ {git, "https://github.com/mattsta/oneshot.git", {tag, "v1.7.0"}}} ]}. +{plugins, [pc]}. +{provider_hooks, + [ + {pre, + [ + {compile, {pc, compile}}, + {clean, {pc, clean}} + ] + } + ] +}. + {port_specs, [{"priv/stdin_forcer", ["c_src/stdin_forcer.c"]}, {"priv/errcat", ["c_src/errcat.c"]}]}. \ No newline at end of file