Skip to content
Permalink
Browse files
Merge pull request #620 from tuncer/travis-dialyze
Travis dialyze
  • Loading branch information
lrascao committed Feb 1, 2018
2 parents 4bd43fe + 8a2aca0 commit b6d309417c502ca243f810e5313bea36951ef038
Showing 5 changed files with 32 additions and 8 deletions.
@@ -11,9 +11,27 @@ otp_release:
- 17.0
- 18.0
- 19.1
- 20.0.4
- 20.0.5
- 20.1.5
env: MAKE_TARGET=ci
before_script:
- hostname -f
- cc -v
- ld -v
script: "make travis"
- find .rebar
after_script:
- find .rebar
matrix:
include:
- otp_release: 20.1.5
env: MAKE_TARGET=ci-dialyze
allow_failures:
- otp_release: 20.1.5
env: MAKE_TARGET=ci-dialyze
script: make $MAKE_TARGET
cache:
directories:
- .rebar
before_cache:
- rm -fv .rebar/erlcinfo
- rm -fv $HOME/.cache/.rebar/erlcinfo
@@ -22,11 +22,11 @@ check: debug xref dialyzer deps test
xref:
@./rebar xref

build_plt:
@./rebar build-plt
maybe_build_plt:
@./rebar -vv check-plt || ./rebar -vv build-plt

dialyzer:
@./rebar dialyze
dialyze: maybe_build_plt
@./rebar -vv dialyze

binary: VSN = $(shell ./rebar -V)
binary: clean all
@@ -45,4 +45,6 @@ test_eunit: all
test_inttest: all deps
@$(RETEST) -l $(LOG_LEVEL) $(RT_TARGETS)

travis: clean debug xref clean all deps test
ci: clean debug xref clean all deps test

ci-dialyze: clean debug dialyze
@@ -35,6 +35,8 @@

-include("rebar.hrl").

-dialyzer({no_opaque, has_header/2}).

%% ====================================================================
%% Internal functions
%% ====================================================================
@@ -296,7 +296,7 @@ vcs_vsn(Config, Vsn, Dir) ->
VsnString = vcs_vsn_1(Vsn, Dir),
Cache1 = dict:store(Key, VsnString, Cache),
Config1 = rebar_config:set_xconf(Config, vsn_cache, Cache1),
save_vsn_cache(Config1),
_ = save_vsn_cache(Config1),
{Config1, VsnString};
{ok, VsnString} ->
{Config, VsnString}
@@ -40,6 +40,8 @@
%% for internal use only
-export([info/2]).

-dialyzer({no_opaque, find_function_source/4}).

%% ===================================================================
%% Public API
%% ===================================================================

0 comments on commit b6d3094

Please sign in to comment.