summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2016-08-30 16:18:04 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2018-01-30 23:41:57 +0000
commitb36e72bc8ad0c6e654cdf627304b41911e923b26 (patch)
tree98a8d32c495fbd640163ded0ab9857b2a3fcf8fb
parent4bd43fefecdb6241bcb21b1b42428c8c4abc5e40 (diff)
downloadrebar-b36e72bc8ad0c6e654cdf627304b41911e923b26.tar.gz
Run Dialyzer on Travis-CI
-rw-r--r--.travis.yml16
-rw-r--r--Makefile12
2 files changed, 22 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index dcb6606..7f87c15 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,8 +12,22 @@ otp_release:
- 18.0
- 19.1
- 20.0.4
+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.0.4
+ env: MAKE_TARGET=ci-dialyze
+script: make $MAKE_TARGET
+cache:
+ directories:
+ - .rebar
+before_cache:
+ - rm -fv .rebar/erlcinfo
+ - rm -fv $HOME/.cache/.rebar/erlcinfo
diff --git a/Makefile b/Makefile
index d0d16f8..106e289 100644
--- a/Makefile
+++ b/Makefile
@@ -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