Skip to content

Commit

Permalink
Add dialyer check to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kpanic committed Mar 31, 2018
1 parent 119a7f6 commit a2f3aeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ sudo: required
language: elixir
elixir:
- 1.6.4
script: "mix test"
script:
- mix test
- mkdir .dialyzer
- mix dialyzer --plt
- mix dialyzer --halt-exit-status
cache:
- directories:
- .dialyzer
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a2f3aeb

Please sign in to comment.