Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

78 řádky
3.7 KiB

před 7 roky
před 10 roky
před 10 roky
před 10 roky
  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.2"},
  5. {certifi, "2.0.0"},
  6. {providers, "1.6.0"},
  7. {getopt, "0.8.2"},
  8. {bbmustache, "1.3.0"},
  9. {relx, "3.23.1"},
  10. {cf, "0.2.2"},
  11. {cth_readable, "1.3.0"},
  12. {eunit_formatters, "0.4.0"}]}.
  13. {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
  14. escriptize,
  15. "cp \"$REBAR_BUILD_DIR/bin/rebar3\" ./rebar3"},
  16. {"win32",
  17. escriptize,
  18. "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ rebar3* "
  19. "/njs /njh /nfl /ndl & exit /b 0"} % silence things
  20. ]}.
  21. {escript_name, rebar3}.
  22. {escript_emu_args, "%%! +sbtu +A0\n"}.
  23. %% escript_incl_extra is for internal rebar-private use only.
  24. %% Do not use outside rebar. Config interface is not stable.
  25. {escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
  26. {"rebar/priv/templates/*", "_build/default/lib/"}]}.
  27. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  28. {platform_define, "^(19|2)", rand_only},
  29. no_debug_info,
  30. warnings_as_errors]}.
  31. %% Use OTP 18+ when dialyzing rebar3
  32. {dialyzer, [{warnings, [unknown]}]}.
  33. %% Profiles
  34. {profiles, [{test, [
  35. {deps, [{meck, "0.8.7"}]},
  36. {erl_opts, [debug_info, nowarn_export_all]}
  37. ]
  38. },
  39. {bootstrap, []},
  40. {dialyze, [{overrides, [{add, erlware_commons, [{erl_opts, [debug_info]}]},
  41. {add, ssl_verify_fun, [{erl_opts, [debug_info]}]},
  42. {add, certifi, [{erl_opts, [debug_info]}]},
  43. {add, providers, [{erl_opts, [debug_info]}]},
  44. {add, getopt, [{erl_opts, [debug_info]}]},
  45. {add, bbmustache, [{erl_opts, [debug_info]}]},
  46. {add, relx, [{erl_opts, [debug_info]}]},
  47. {add, cf, [{erl_opts, [debug_info]}]},
  48. {add, cth_readable, [{erl_opts, [debug_info]}]},
  49. {add, eunit_formatters, [{erl_opts, [debug_info]}]}]},
  50. {erl_opts, [debug_info]}]}
  51. ]}.
  52. %% Overrides
  53. {overrides, [{override, erlware_commons, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  54. {platform_define, "^R1[4|5]", deprecated_crypto},
  55. {platform_define, "^((1[8|9])|2)", rand_module},
  56. no_debug_info,
  57. warnings_as_errors]},
  58. {deps, []}, {plugins, []}]},
  59. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  60. {add, certifi, [{erl_opts, [no_debug_info]}]},
  61. {add, cf, [{erl_opts, [no_debug_info]}]},
  62. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  63. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  64. {override, bbmustache, [{erl_opts, [no_debug_info,
  65. {platform_define, "^[0-9]+", namespaced_types}]},
  66. {deps, []}, {plugins, []}]},
  67. {add, getopt, [{erl_opts, [no_debug_info]}]},
  68. {add, providers, [{erl_opts, [no_debug_info]}]},
  69. {add, relx, [{erl_opts, [no_debug_info]}]}]}.