瀏覽代碼

Merge pull request #2078 from ferd/otp-22.0

OTP-22.0 readiness
pull/2083/head
Fred Hebert 6 年之前
committed by GitHub
父節點
當前提交
cf51007d9c
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 5 個檔案被更改,包括 6 行新增21 行删除
  1. +1
    -1
      .cirrus.yml
  2. +2
    -2
      .travis.yml
  3. +2
    -3
      rebar.config
  4. +0
    -14
      src/rebar.hrl
  5. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
.cirrus.yml 查看文件

@ -1,11 +1,11 @@
test_task:
container:
matrix:
- image: erlang:22
- image: erlang:21
- image: erlang:20
- image: erlang:19
- image: erlang:18
- image: erlang:17
test_script: |
./bootstrap
./rebar3 ct

+ 2
- 2
.travis.yml 查看文件

@ -1,8 +1,6 @@
language: erlang
matrix:
include:
- os: linux
otp_release: 17.5
- os: linux
otp_release: 18.3
- os: linux
@ -11,6 +9,8 @@ matrix:
otp_release: 20.0
- os: linux
otp_release: 21.0
- os: linux
otp_release: 22.0
- os: osx
language: generic
before_script:

+ 2
- 3
rebar.config 查看文件

@ -29,8 +29,7 @@
{escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
{"rebar/priv/templates/*", "_build/default/lib/"}]}.
{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^(19|2)", rand_only},
{erl_opts, [{platform_define, "^(19|2)", rand_only},
{platform_define, "^2", unicode_str},
{platform_define, "^(2[1-9])|(20\\\\.3)", filelib_find_source},
{platform_define, "^(R|1|20)", fun_stacktrace},
@ -45,7 +44,7 @@
%% Profiles
{profiles, [{test, [
{deps, [{meck, "0.8.12"}]},
{deps, [{meck, "0.8.13"}]},
{erl_opts, [debug_info, nowarn_export_all]}
]
},

+ 0
- 14
src/rebar.hrl 查看文件

@ -55,23 +55,9 @@
state :: term(),
implementation :: rebar_resource | rebar_resource_v2}).
-ifdef(namespaced_types).
-type rebar_dict() :: dict:dict().
-else.
-type rebar_dict() :: dict().
-endif.
-ifdef(namespaced_types).
-type rebar_digraph() :: digraph:graph().
-else.
-type rebar_digraph() :: digraph().
-endif.
-ifdef(namespaced_types).
-type rebar_set() :: sets:set().
-else.
-type rebar_set() :: set().
-endif.
-ifdef(fun_stacktrace).
-define(WITH_STACKTRACE(T, R, S), T:R -> S = erlang:get_stacktrace(),).

+ 1
- 1
src/rebar_utils.erl 查看文件

@ -972,7 +972,7 @@ get_proxy_auth() ->
{ok, ProxyAuth} -> ProxyAuth
end.
-spec rebar_utils:is_list_of_strings(term()) -> boolean().
-spec is_list_of_strings(term()) -> boolean().
is_list_of_strings(List) when not is_list(hd(List)) ->
false;
is_list_of_strings(List) when is_list(hd(List)) ->

Loading…
取消
儲存