Run Dialyzer in CI

This commit is contained in:
Marcel Otto 2020-06-22 01:44:57 +02:00
parent af5955ecd2
commit f70ce5f8aa
4 changed files with 17 additions and 0 deletions

4
.gitignore vendored
View File

@ -16,4 +16,8 @@ erl_crash.dump
# Also ignore archive artifacts (built via "mix archive.build").
*.ez
# Dialyzer
/priv/plts/*.plt
/priv/plts/*.plt.hash
.tool-versions*

View File

@ -22,3 +22,7 @@ matrix:
sudo: false
script:
- MIX_ENV=test mix coveralls.travis
- mix dialyzer
cache:
directories:
- priv/plts

View File

@ -28,6 +28,9 @@ defmodule JSON.LD.Mixfile do
extras: ["README.md"]
],
# Dialyzer
dialyzer: dialyzer(),
# ExCoveralls
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
@ -72,6 +75,12 @@ defmodule JSON.LD.Mixfile do
]
end
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end

0
priv/plts/.keep Normal file
View File