no dialyzer for R16 and below

This commit is contained in:
Andrei Neculau 2015-12-14 23:59:16 +01:00 committed by Andrei Neculau
parent 515f1f4292
commit 4718bb189f

View File

@ -14,10 +14,10 @@ DIALYZER := dialyzer
# Travis CI is slow at building dialyzer PLT
ifeq ($(TRAVIS), true)
OTP_VSN := $(shell erl -noshell -eval 'io:format("~p", [erlang:system_info(otp_release)]), erlang:halt(0).' | perl -lne 'print for /^(?:"R)?(\d+).*/g')
SLOW_DIALYZER := $(shell expr $(OTP_VSN) \<= 14 )
NO_DIALYZER := $(shell expr $(OTP_VSN) \<= 16 )
ifeq ($(SLOW_DIALYZER), 1)
DIALYZER := : not running dialyzer on TRAVIS with R14
ifeq ($(NO_DIALYZER), 1)
DIALYZER := : not running dialyzer on TRAVIS with R16 and below
endif
endif