Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

76 строки
3.6 KiB

8 лет назад
10 лет назад
9 лет назад
9 лет назад
9 лет назад
10 лет назад
9 лет назад
10 лет назад
10 лет назад
  1. %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
  2. %% ex: ts=4 sw=4 ft=erlang et
  3. {deps, [{erlware_commons, "1.0.0"},
  4. {ssl_verify_fun, "1.1.1"},
  5. {certifi, "0.4.0"},
  6. {providers, "1.6.0"},
  7. {getopt, "0.8.2"},
  8. {bbmustache, "1.3.0"},
  9. {relx, "3.22.2"},
  10. {cf, "0.2.2"},
  11. {cth_readable, "1.2.3"},
  12. {eunit_formatters, "0.3.1"}]}.
  13. {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
  14. escriptize,
  15. "cp $REBAR_BUILD_DIR/bin/rebar3 ./rebar3"},
  16. {"win32",
  17. "robocopy $REBAR_BUILD_DIR/bin/ ./ rebar3*"}
  18. ]}.
  19. {escript_name, rebar3}.
  20. {escript_emu_args, "%%! +sbtu +A0\n"}.
  21. %% escript_incl_extra is for internal rebar-private use only.
  22. %% Do not use outside rebar. Config interface is not stable.
  23. {escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
  24. {"rebar/priv/templates/*", "_build/default/lib/"}]}.
  25. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  26. {platform_define, "^(19|2)", rand_only},
  27. no_debug_info,
  28. warnings_as_errors]}.
  29. %% Use OTP 18+ when dialyzing rebar3
  30. {dialyzer, [{warnings, [unknown]}]}.
  31. %% Profiles
  32. {profiles, [{test, [
  33. {deps, [{meck, "0.8.2"}]},
  34. {erl_opts, [debug_info]}
  35. ]
  36. },
  37. {bootstrap, []},
  38. {dialyze, [{overrides, [{add, erlware_commons, [{erl_opts, [debug_info]}]},
  39. {add, ssl_verify_fun, [{erl_opts, [debug_info]}]},
  40. {add, certifi, [{erl_opts, [debug_info]}]},
  41. {add, providers, [{erl_opts, [debug_info]}]},
  42. {add, getopt, [{erl_opts, [debug_info]}]},
  43. {add, bbmustache, [{erl_opts, [debug_info]}]},
  44. {add, relx, [{erl_opts, [debug_info]}]},
  45. {add, cf, [{erl_opts, [debug_info]}]},
  46. {add, cth_readable, [{erl_opts, [debug_info]}]},
  47. {add, eunit_formatters, [{erl_opts, [debug_info]}]}]},
  48. {erl_opts, [debug_info]}]}
  49. ]}.
  50. %% Overrides
  51. {overrides, [{override, erlware_commons, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  52. {platform_define, "^R1[4|5]", deprecated_crypto},
  53. {platform_define, "^((1[8|9])|2)", rand_module},
  54. no_debug_info,
  55. warnings_as_errors]},
  56. {deps, []}, {plugins, []}]},
  57. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  58. {add, certifi, [{erl_opts, [no_debug_info]}]},
  59. {add, cf, [{erl_opts, [no_debug_info]}]},
  60. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  61. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  62. {override, bbmustache, [{erl_opts, [no_debug_info,
  63. {platform_define, "^[0-9]+", namespaced_types}]},
  64. {deps, []}, {plugins, []}]},
  65. {add, getopt, [{erl_opts, [no_debug_info]}]},
  66. {add, providers, [{erl_opts, [no_debug_info]}]},
  67. {add, relx, [{erl_opts, [no_debug_info]}]}]}.