소스 검색

update common tests

pull/3/head
Tristan Sloughter 10 년 전
부모
커밋
5dc2de6468
4개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  1. +0
    -4
      .travis.yml
  2. +1
    -1
      Makefile
  3. +7
    -2
      src/rebar3.erl
  4. +2
    -2
      test/rebar_compile_SUITE.erl

+ 0
- 4
.travis.yml 파일 보기

@ -2,10 +2,6 @@ language: erlang
otp_release:
- R16B02
- R16B01
- R16B
- R15B01
- R15B
- R14B04
- R14B03
- 17.0
script: "make travis"

+ 1
- 1
Makefile 파일 보기

@ -42,4 +42,4 @@ test:
@$(REBAR) eunit
@$(RETEST) -v inttest
travis: clean debug xref clean all deps test
travis: all deps test

+ 7
- 2
src/rebar3.erl 파일 보기

@ -156,8 +156,13 @@ init_config({Options, _NonOptArgs}) ->
init_config1(BaseConfig) ->
%% Determine the location of the rebar executable; important for pulling
%% resources out of the escript
ScriptName = filename:absname(escript:script_name()),
rebar_state:set(BaseConfig, escript, ScriptName).
try
ScriptName = filename:absname(escript:script_name()),
rebar_state:set(BaseConfig, escript, ScriptName)
catch
_:_ ->
BaseConfig
end.
run_aux(BaseConfig, Commands) ->
%% Make sure crypto is running

+ 2
- 2
test/rebar_compile_SUITE.erl 파일 보기

@ -25,7 +25,7 @@ init_per_testcase(_, Config) ->
DataDir = proplists:get_value(data_dir, Config),
AppsDir = filename:join([DataDir, create_random_name("apps_dir1_")]),
ok = ec_file:mkdir_p(AppsDir),
Verbosity = rebar:log_level([]),
Verbosity = rebar3:log_level([]),
rebar_log:init(command_line, Verbosity),
State = rebar_state:new(),
[{apps, AppsDir}, {state, State} | Config].
@ -43,7 +43,7 @@ build_basic_app(Config) ->
ConfigFile = filename:join([AppDir, "rebar.config"]),
write_config(ConfigFile, []),
rebar:run(rebar_state:new(State, [], AppDir), ["compile"]),
rebar3:run(rebar_state:new(State, [], AppDir), ["compile"]),
%% Verify app was built
[App] = rebar_app_discover:find_apps([AppDir]),

불러오는 중...
취소
저장