Skip to content

Commit

Permalink
Fix dialyzer check and cache PLTs
Browse files Browse the repository at this point in the history
This will cache the Erlang & Elixir PLTs for each combination, and also
fixes the dialyzer run for us to make sure we're not referencing any
invalid types or anything else like that.
  • Loading branch information
devonestes committed Jan 17, 2020
1 parent ea4da3b commit e284fe9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ bin/configlet
bin/configlet*
deps
_build
/priv/plts/*.plt
/priv/plts/*.plt.hash
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ elixir:
- 1.9.0

otp_release:
- 20.3
- 21.3
- 22.0

matrix:
Expand Down Expand Up @@ -34,3 +34,5 @@ cache:
directories:
- _build
- deps
- ~/.mix/
- priv/plts
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ defmodule ExercismTestRunner.Mixfile do
deps: deps(),
test_paths: ["exercises"],
consolidate_protocols: false,
dialyzer: [paths: ["tmp/build"]]
dialyzer: [
paths: ["_build"],
plt_file: {:no_warn, "priv/plts/eventstore.plt"}
]
]
end

Expand All @@ -18,6 +21,6 @@ defmodule ExercismTestRunner.Mixfile do
end

defp deps do
[{:dialyxir, "~> 0.5"}]
[{:dialyxir, "~> 1.0.0-rc.7"}]
end
end
3 changes: 2 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%{
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], []},
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.7", "6287f8f2cb45df8584317a4be1075b8c9b8a69de8eeb82b4d9e6c761cf2664cd", [:mix], [{:erlex, ">= 0.2.5", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
"erlex": {:hex, :erlex, "0.2.5", "e51132f2f472e13d606d808f0574508eeea2030d487fc002b46ad97e738b0510", [:mix], [], "hexpm"},
}

0 comments on commit e284fe9

Please sign in to comment.