diff --git a/.travis.yml b/.travis.yml index c053d41..38cb214 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,10 @@ sudo: required language: elixir elixir: - 1.6.4 -script: "mix test" +script: + - mix test + - mix dialyzer --plt + - mix dialyzer --halt-exit-status +cache: + - directories: + - .dialyzer diff --git a/mix.exs b/mix.exs index 05837c4..08a4ea1 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,8 @@ defmodule Forecastr.MixProject do version: "0.1.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, - deps: deps() + deps: deps(), + dialyzer: [plt_file: ".dialyzer/local.plt"] ] end