aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 1cca268..001031e 100644
--- a/Makefile
+++ b/Makefile
@@ -7,19 +7,9 @@ PROJECT_REGISTERED = ranch_server
# Options.
-COMPILE_FIRST = ranch_transport
CT_OPTS += -pa test -ct_hooks ranch_ct_hook []
PLT_APPS = crypto public_key ssl
-CI_OTP ?= \
- OTP_R16B OTP_R16B01 OTP_R16B02 OTP_R16B03-1 \
- OTP-17.1.2 OTP-17.2.2 OTP-17.3.4 OTP-17.4.1 OTP-17.5.6.6 \
- OTP-18.0.3 OTP-18.1.5 OTP-18.2.4.1 OTP-18.3.4.5 \
- OTP-19.0.7 OTP-19.1.6 OTP-19.2.3 OTP-19.3.6.2 \
- OTP-20.0.5 OTP-20.1.1
-#CI_HIPE ?= $(lastword $(CI_OTP))
-#CI_ERLLVM ?= $(CI_HIPE)
-
# Dependencies.
LOCAL_DEPS = ssl
@@ -29,15 +19,25 @@ DOC_DEPS = asciideck
TEST_DEPS = ct_helper
dep_ct_helper = git https://github.com/ninenines/ct_helper master
+# CI configuration.
+
+BUILD_DEPS = ci.erlang.mk
+dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
+DEP_EARLY_PLUGINS = ci.erlang.mk
+
+AUTO_CI_OTP ?= OTP-18+
+AUTO_CI_HIPE ?= OTP-LATEST
+# AUTO_CI_ERLLVM ?= OTP-LATEST
+
# Standard targets.
include erlang.mk
-# Also dialyze the tests.
+# Dialyze the tests.
DIALYZER_OPTS += --src -r test
-# Use erl_make_certs from the tested release.
+# Use erl_make_certs from the tested release during CI.
ci-setup:: $(DEPS_DIR)/ct_helper
- cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/
+ $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/