diff options
author | Jordan Wilberding <[email protected]> | 2013-04-08 10:29:24 -0700 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2013-04-08 10:29:24 -0700 |
commit | 4c0bdeb92883048bac4e6a45d5217de07ae14291 (patch) | |
tree | 723ffa234402c81d3d45e23522cebbdec365017d | |
parent | 88928540483de79e2509d0add5833cb21f243fe4 (diff) | |
parent | 9cc71b80c4387579469042b93f3240a0fd7c41c2 (diff) | |
download | relx-4c0bdeb92883048bac4e6a45d5217de07ae14291.tar.gz relx-4c0bdeb92883048bac4e6a45d5217de07ae14291.tar.bz2 relx-4c0bdeb92883048bac4e6a45d5217de07ae14291.zip |
Merge pull request #48 from ericbmerritt/next
Don't run dialyzer on R14 and below
-rw-r--r-- | Makefile | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -35,6 +35,24 @@ ifeq ($(REBAR),) $(error "Rebar not available on this system") endif +# ============================================================================= +# Handle version discovery +# ============================================================================= + +# We have a problem that we only have 10 minutes to build on travis +# and those travis boxes are quite small. This is ok for the fast +# dialyzer on R15 and above. However on R14 and below we have the +# problem that travis times out. The code below lets us not run +# dialyzer on R14 +OTP_VSN=$(shell erl -noshell -eval 'io:format("~p", [erlang:system_info(otp_release)]), erlang:halt(0).' | perl -lne 'print for /R(\d+).*/g') +TRAVIS_SLOW=$(shell expr $(OTP_VSN) \<= 14 ) + +ifeq ($(TRAVIS_SLOW), 0) +DIALYZER=$(shell which dialyzer) +else +DIALYZER=: not running dialyzer on R14 +endif + .PHONY: all compile doc clean test dialyzer typer shell distclean pdf \ update-deps escript clean-common-test-data rebuild @@ -75,13 +93,14 @@ ct: compile clean-common-test-data test: compile eunit ct $(DEPS_PLT): - @echo Building local plt at $(DEPS_PLT) + @echo Building local erts plt at $(DEPS_PLT) @echo - dialyzer --output_plt $(DEPS_PLT) --build_plt \ + $(DIALYZER) --output_plt $(DEPS_PLT) --build_plt \ --apps erts kernel stdlib -r deps dialyzer: $(DEPS_PLT) - dialyzer --fullpath --plt $(DEPS_PLT) -I include -Wrace_conditions -r ./ebin + $(DIALYZER) --fullpath --plt $(DEPS_PLT) \ + -I include -Wrace_conditions -r ./ebin typer: typer --plt $(DEPS_PLT) -r ./src |