Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete RFC Implementation #20

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
23 changes: 10 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3

# If there is a rebar in the current directory, use it
ifeq ($(wildcard rebar3),rebar3)
Expand All @@ -8,21 +7,19 @@ endif
# Fallback to rebar on PATH
REBAR3 ?= $(shell which rebar3)

# And finally, prep to download rebar if all else fails
ifeq ($(REBAR3),)
REBAR3 = $(CURDIR)/rebar3
endif

clean: $(REBAR3)
@$(REBAR3) clean
rm -rf _build

all: $(REBAR3)
@$(REBAR3) do clean, compile, eunit, ct, dialyzer
@$(REBAR3) do compile, eunit, cover, dialyzer


rel: all
@$(REBAR3) release

$(REBAR3):
curl -Lo rebar3 $(REBAR3_URL) || wget $(REBAR3_URL)
chmod a+x rebar3

nginx-tests:
./tools/gen_nginx_tests.py > test/nginx.data
@rm -rf test/hpack-test-case

clean: $(REBAR3)
@$(REBAR3) clean
rm -rf _build
19 changes: 6 additions & 13 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
%% -*- mode: erlang -*-
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
{erl_opts, [
warnings_as_errors,
debug_info
]}.

{deps, []}.

{cover_enabled, true}.

{ct_opts, [{verbose,true}]}.

{profiles, [
{test, [{erl_opts, [
{i,["include"]}
]}
]
}]
}.
{eunit_opts, [
verbose
]}.

{cover_enabled, true}.
{cover_print_enabled, true}.
32 changes: 14 additions & 18 deletions src/hpack.app.src
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
%% -*- mode: erlang -*-
{application, hpack,
[
{description, "HPACK Implementation"},
{vsn, git},
{registered, []},
{applications, [
kernel,
stdlib
]},
{env, []},

{pkg_name, 'hpack_erl'},
{maintainers, ["Joe DeVivo"]},
{licenses, ["MIT"]},
{links, [{"Github", "https://github.com/joedevivo/hpack"}]}
]}.
%% vim: set filetype=erlang tabstop=2
{application, hpack, [
{description, "HPACK Implementation"},
{vsn, git},
{registered, []},
{applications, [
kernel,
stdlib
]},
{env, []},
{pkg_name, 'hpack_erl'},
{maintainers, ["Joe DeVivo"]},
{licenses, ["MIT"]},
{links, [{"Github", "https://github.com/joedevivo/hpack"}]}
]}.
Loading