Makefile 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # See LICENSE for licensing information.
  2. PROJECT = ranch
  3. # Options.
  4. COMPILE_FIRST = ranch_transport
  5. CT_OPTS += -pa test -ct_hooks ranch_ct_hook []
  6. PLT_APPS = crypto public_key ssl
  7. CI_OTP ?= \
  8. OTP_R16B OTP_R16B01 OTP_R16B02 OTP_R16B03-1 \
  9. OTP-17.1.2 OTP-17.2.2 OTP-17.3.4 OTP-17.4.1 OTP-17.5.6.6 \
  10. OTP-18.0.3 OTP-18.1.5 OTP-18.2.4.1 OTP-18.3.4.4 \
  11. OTP-19.0.7 OTP-19.1.2
  12. # Only test on the most recent version on public CI services.
  13. ifdef CI
  14. ifndef BUILDKITE
  15. CI_OTP := $(lastword $(CI_OTP))
  16. endif
  17. endif
  18. # Dependencies.
  19. TEST_DEPS = ct_helper
  20. dep_ct_helper = git https://github.com/ninenines/ct_helper master
  21. # Standard targets.
  22. include erlang.mk
  23. # Also dialyze the tests.
  24. DIALYZER_OPTS += --src -r test
  25. # Use erl_make_certs from the tested release.
  26. ci-setup:: $(DEPS_DIR)/ct_helper
  27. cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/