aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--mix.exs4
-rw-r--r--mix.lock3
3 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index a875a2a..b2631e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,3 +5,7 @@ elixir:
otp_release:
- 18.3
- 19.0
+
+script:
+ - MIX_ENV=dev mix do deps.get, dialyzer.plt, dialyzer
+ - MIX_ENV=test mix do deps.get, test
diff --git a/mix.exs b/mix.exs
index 6348d98..720560b 100644
--- a/mix.exs
+++ b/mix.exs
@@ -10,6 +10,7 @@ defmodule ExPrometheusIo.Mixfile do
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
+ dialyzer: [plt_add_apps: [:inets], plt_add_deps: :transitive],
deps: deps]
end
@@ -20,7 +21,8 @@ defmodule ExPrometheusIo.Mixfile do
defp deps do
[{:poison, "~> 2.2 or ~> 1.5"},
- {:ex_doc, "~> 0.13.0", only: :dev}]
+ {:ex_doc, "~> 0.13.0", only: :dev},
+ {:dialyxir, "~> 0.3.5", only: :dev}]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
diff --git a/mix.lock b/mix.lock
index 1de9165..b785bff 100644
--- a/mix.lock
+++ b/mix.lock
@@ -1,3 +1,4 @@
%{"earmark": {:hex, :earmark, "1.0.1", "2c2cd903bfdc3de3f189bd9a8d4569a075b88a8981ded9a0d95672f6e2b63141", [:mix], []},
"ex_doc": {:hex, :ex_doc, "0.13.0", "aa2f8fe4c6136a2f7cfc0a7e06805f82530e91df00e2bff4b4362002b43ada65", [:mix], [{:earmark, "~> 1.0", [hex: :earmark, optional: false]}]},
- "poison": {:hex, :poison, "2.2.0", "4763b69a8a77bd77d26f477d196428b741261a761257ff1cf92753a0d4d24a63", [:mix], []}}
+ "poison": {:hex, :poison, "2.2.0", "4763b69a8a77bd77d26f477d196428b741261a761257ff1cf92753a0d4d24a63", [:mix], []},
+ "dialyxir": {:hex, :dialyxir, "0.3.5", "eaba092549e044c76f83165978979f60110dc58dd5b92fd952bf2312f64e9b14", [:mix], []}}