Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # See LICENSE for licensing information.
  2. PROJECT = cowboy
  3. PROJECT_DESCRIPTION = Small, fast, modern HTTP server.
  4. PROJECT_VERSION = 2.0.0-pre.4
  5. PROJECT_REGISTERED = cowboy_clock
  6. # Options.
  7. COMPILE_FIRST = cowboy_middleware cowboy_stream cowboy_sub_protocol
  8. PLT_APPS = public_key ssl
  9. CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
  10. CI_OTP ?= OTP-18.0.3 OTP-18.1.5 OTP-18.2.4.1 OTP-18.3.4.4 OTP-19.0.7 OTP-19.1.5
  11. # Dependencies.
  12. LOCAL_DEPS = crypto
  13. DEPS = cowlib ranch
  14. dep_cowlib = git https://github.com/ninenines/cowlib master
  15. dep_ranch = git https://github.com/ninenines/ranch 1.2.1
  16. DOC_DEPS = asciideck
  17. TEST_DEPS = ct_helper gun
  18. dep_ct_helper = git https://github.com/extend/ct_helper master
  19. dep_gun = git https://github.com/ninenines/gun master
  20. # Standard targets.
  21. include erlang.mk
  22. # Compile options.
  23. ERLC_OPTS += +warn_export_all +warn_missing_spec +warn_untyped_record
  24. TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}'
  25. # Generate rebar.config on build.
  26. app:: rebar.config
  27. # Also dialyze the tests.
  28. # DIALYZER_OPTS += --src -r test
  29. # Use erl_make_certs from the tested release.
  30. ci-setup:: clean deps test-deps
  31. $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/