Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add `make dialyzer` and basic TravisCI stuff

  • Loading branch information...
commit df68fd1ebe78f61d73ecef89ffa2b24f117196d8 1 parent df198cf
@choptastic choptastic authored
Showing with 41 additions and 1 deletion.
  1. +8 −0 .travis.yml
  2. +32 −0 Makefile
  3. +1 −1  rebar.config
View
8 .travis.yml
@@ -0,0 +1,8 @@
+language: erlang
+script: "make travis"
+otp_release:
+ - R16B
+ - R15B03
+ - R15B02
+ - R15B01
+ - R15B
View
32 Makefile
@@ -3,3 +3,35 @@ compile:
clean:
./rebar clean
+
+
+DEPS_PLT=$(CURDIR)/.deps_plt
+DEPS=erts kernel stdlib sasl
+# removed 'sasl' in attempt to minimize memory usage for Travis
+
+$(DEPS_PLT):
+ @echo Building local plt at $(DEPS_PLT)
+ @echo
+ @(dialyzer --output_plt $(DEPS_PLT) --build_plt --apps $(DEPS))
+
+dialyzer: compile $(DEPS_PLT)
+ @(dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)
+
+dialyzer-no-race: compile $(DEPS_PLT)
+ @(dialyzer --fullpath --plt $(DEPS_PLT) -r ./ebin)
+
+# TRAVIS-CI STUFF
+
+ERLANG_VERSION_CHECK := erl -eval "io:format(\"~s\",[erlang:system_info(otp_release)]), halt()." -noshell
+ERLANG_VERSION = $(shell $(ERLANG_VERSION_CHECK))
+
+# This is primarily for Travis build testing, as each build instruction will overwrite the previous
+travis: $(ERLANG_VERSION)
+
+R15B: dialyzer
+R15B01: dialyzer
+R15B02: dialyzer-no-race
+R15B03: dialyzer
+R16B: dialyzer
+R16B01: dialyzer
+R16B02: dialyzer
View
2  rebar.config
@@ -1 +1 @@
-{erl_opts, []}.
+{erl_opts, [debug_info]}.
Please sign in to comment.
Something went wrong with that request. Please try again.