mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 04:10:24 +00:00
Update Ranch to 0.8.2 and use ct_helper for testing SSL
This commit is contained in:
parent
ed2efbc4a1
commit
6e33274c85
6 changed files with 17 additions and 47 deletions
12
erlang.mk
vendored
12
erlang.mk
vendored
|
@ -34,6 +34,7 @@ DEPS_DIR ?= $(CURDIR)/deps
|
|||
export DEPS_DIR
|
||||
|
||||
ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DEPS))
|
||||
ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
|
||||
|
||||
# Application.
|
||||
|
||||
|
@ -56,7 +57,7 @@ app: ebin/$(PROJECT).app
|
|||
|
||||
ebin/$(PROJECT).app: src/*.erl
|
||||
@mkdir -p ebin/
|
||||
$(erlc_verbose) erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
|
||||
$(erlc_verbose) ERL_LIBS=deps erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
|
||||
$(COMPILE_FIRST_PATHS) $?
|
||||
|
||||
clean:
|
||||
|
@ -94,7 +95,12 @@ clean-docs:
|
|||
|
||||
# Tests.
|
||||
|
||||
build-tests:
|
||||
$(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep))))
|
||||
|
||||
build-test-deps: $(ALL_TEST_DEPS_DIRS)
|
||||
@for dep in $(ALL_TEST_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
|
||||
|
||||
build-tests: build-test-deps
|
||||
$(gen_verbose) erlc -v $(ERLC_OPTS) -o test/ \
|
||||
$(wildcard test/*.erl test/*/*.erl) -pa ebin/
|
||||
|
||||
|
@ -123,7 +129,7 @@ DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions \
|
|||
|
||||
build-plt: deps app
|
||||
@dialyzer --build_plt --output_plt .$(PROJECT).plt \
|
||||
--apps erts kernel stdlib $(PLT_APPS) $(ALL_DEPS_DIR)
|
||||
--apps erts kernel stdlib $(PLT_APPS) $(ALL_DEPS_DIRS)
|
||||
|
||||
dialyze:
|
||||
@dialyzer --src src --plt .$(PROJECT).plt --no_native $(DIALYZER_OPTS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue