From a104e563633797a6dc79599bd736c0b647d2b539 Mon Sep 17 00:00:00 2001 From: hrobeers <2812522+hrobeers@users.noreply.github.com> Date: Wed, 22 Jul 2020 11:25:37 +0200 Subject: [PATCH] Migrate to rebar3 --- .gitignore | 3 +++ README.md | 8 ++++---- rebar.config | 12 ++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) 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