rebar.config 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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, [debug_info]}.
  6. {yrl_opts, [{includefile, "include/erlydtl_preparser.hrl"}]}.
  7. {eunit_opts,
  8. [%% This turns off the default output, MUST HAVE
  9. no_tty,
  10. %% Uses the progress formatter with ANSI-colored output
  11. {report, {eunit_progress, [colored
  12. %% uncomment to get a list of slowest running tests
  13. %%, profile
  14. ]}}
  15. ]}.
  16. {deps,
  17. [{merl, ".*",
  18. {git, "git://github.com/erlydtl/merl.git", "28e5b3829168199e8475fa91b997e0c03b90d280"},
  19. [raw]},
  20. {eunit_formatters, ".*",
  21. {git, "git://github.com/seancribbs/eunit_formatters", "7f79fa3fb953b94990bd9b41e92cef7cfecf91ef"}}
  22. ]}.
  23. {pre_hooks,
  24. [{compile, "make -C $REBAR_DEPS_DIR/merl all -W test"},
  25. {"freebsd", compile, "gmake -C $REBAR_DEPS_DIR/merl all -W test"},
  26. {eunit,
  27. "erlc -I include/erlydtl_preparser.hrl -o test"
  28. " test/erlydtl_extension_testparser.yrl"},
  29. {eunit, "make -C $REBAR_DEPS_DIR/merl test"},
  30. {"freebsd", eunit, "gmake -C $REBAR_DEPS_DIR/merl test"}
  31. ]}.