rebar.config 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. %% -*- mode: erlang -*-
  2. %% accept R15B02.., any R16B except R16B03
  3. %% also accept OTP v17, altough it may not work properly on that release yet..
  4. {require_otp_vsn, "R15B0[^1]|R16B$|R16B[^0]|R16B0[^3]|R16B03-1|17"}.
  5. {erl_opts, [
  6. debug_info,
  7. {platform_define, "^[0-9]+", maps_available}
  8. ]}.
  9. {yrl_opts, [{includefile, "include/erlydtl_preparser.hrl"}]}.
  10. {eunit_opts,
  11. [%% This turns off the default output, MUST HAVE
  12. no_tty,
  13. %% Uses the progress formatter with ANSI-colored output
  14. {report, {eunit_progress, [colored
  15. %% uncomment to get a list of slowest running tests
  16. %%, profile
  17. ]}}
  18. ]}.
  19. {deps,
  20. [{merl, ".*",
  21. {git, "git://github.com/erlydtl/merl.git", {branch, "erlydtl"}},
  22. [raw]},
  23. {eunit_formatters, ".*",
  24. {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
  25. ]}.
  26. {pre_hooks,
  27. [{"(linux|darwin|solaris)", compile, "make -C \"$REBAR_DEPS_DIR/merl\" all -W test"},
  28. {"(freebsd|netbsd|openbsd)", compile, "gmake -C \"$REBAR_DEPS_DIR/merl\" all"},
  29. {"win32", compile, "make -C \"%REBAR_DEPS_DIR%/merl\" all -W test"},
  30. {eunit,
  31. "erlc -I include/erlydtl_preparser.hrl -o test"
  32. " test/erlydtl_extension_testparser.yrl"},
  33. {"(linux|darwin|solaris)", eunit, "make -C \"$REBAR_DEPS_DIR/merl\" test"},
  34. {"(freebsd|netbsd|openbsd)", eunit, "gmake -C \"$REBAR_DEPS_DIR/merl\" test"},
  35. {"win32", eunit, "make -C \"%REBAR_DEPS_DIR%/merl\" test"}
  36. ]}.