diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ef6367..d309f57 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,6 @@ jobs: - uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.otp}} - rebar3-version: 3.20.0 + rebar3-version: 3.24.0 - run: | rebar3 eunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f3a53ae..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: erlang - -notifications: - email: false - -otp_release: - - 21.3 - -script: - - wget https://s3.amazonaws.com/rebar3/rebar3 - - chmod 755 rebar3 - - ./rebar3 compile - - ./rebar3 eunit -v diff --git a/rebar.config b/rebar.config index ec3c33b..eae5c63 100644 --- a/rebar.config +++ b/rebar.config @@ -4,7 +4,7 @@ {w, all}, warn_export_all]}. -{plugins, [pc]}. +{plugins, [{pc, "1.15.0"}]}. {provider_hooks, [ {pre, [ diff --git a/src/snappyer.erl b/src/snappyer.erl index 4912aff..9732c78 100644 --- a/src/snappyer.erl +++ b/src/snappyer.erl @@ -26,8 +26,7 @@ -spec init() -> ok. init() -> - _ = erlang:load_nif(so_path(), 0), - ok. + ok = erlang:load_nif(so_path(), 0). -spec compress(iodata()) -> {ok, binary()} | {error, binary()}. compress(_IoList) ->