Run Dialyzer on Travis-CI

Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/b36e72bc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/b36e72bc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/b36e72bc

Branch: refs/heads/master
Commit: b36e72bc8ad0c6e654cdf627304b41911e923b26
Parents: 4bd43fe
Author: Tuncer Ayaz <[email protected]>
Authored: Tue Aug 30 16:18:04 2016 +0200
Committer: Tuncer Ayaz <[email protected]>
Committed: Tue Jan 30 23:41:57 2018 +0000

----------------------------------------------------------------------
 .travis.yml | 16 +++++++++++++++-
 Makefile    | 12 +++++++-----
 2 files changed, 22 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/b36e72bc/.travis.yml
----------------------------------------------------------------------
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

http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/b36e72bc/Makefile
----------------------------------------------------------------------
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

Reply via email to