Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # See LICENSE for licensing information.
  2. PROJECT = cowboy
  3. PROJECT_DESCRIPTION = Small, fast, modular HTTP server.
  4. PROJECT_VERSION = 2.0.0-pre.2
  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.2
  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. TEST_DEPS = ct_helper gun
  17. dep_ct_helper = git https://github.com/extend/ct_helper master
  18. dep_gun = git https://github.com/ninenines/gun master
  19. # Standard targets.
  20. include erlang.mk
  21. # Compile options.
  22. ERLC_OPTS += +warn_export_all +warn_missing_spec +warn_untyped_record
  23. TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}'
  24. # Generate rebar.config on build.
  25. app:: rebar.config
  26. # Also dialyze the tests.
  27. # DIALYZER_OPTS += --src -r test
  28. # Use erl_make_certs from the tested release.
  29. ci-setup:: clean deps test-deps
  30. $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/