Skip to content

Commit e284fe9

Browse files
committed
Fix dialyzer check and cache PLTs
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.
1 parent ea4da3b commit e284fe9

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ bin/configlet
77
bin/configlet*
88
deps
99
_build
10+
/priv/plts/*.plt
11+
/priv/plts/*.plt.hash

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ elixir:
66
- 1.9.0
77

88
otp_release:
9-
- 20.3
9+
- 21.3
1010
- 22.0
1111

1212
matrix:
@@ -34,3 +34,5 @@ cache:
3434
directories:
3535
- _build
3636
- deps
37+
- ~/.mix/
38+
- priv/plts

mix.exs

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ defmodule ExercismTestRunner.Mixfile do
99
deps: deps(),
1010
test_paths: ["exercises"],
1111
consolidate_protocols: false,
12-
dialyzer: [paths: ["tmp/build"]]
12+
dialyzer: [
13+
paths: ["_build"],
14+
plt_file: {:no_warn, "priv/plts/eventstore.plt"}
15+
]
1316
]
1417
end
1518

@@ -18,6 +21,6 @@ defmodule ExercismTestRunner.Mixfile do
1821
end
1922

2023
defp deps do
21-
[{:dialyxir, "~> 0.5"}]
24+
[{:dialyxir, "~> 1.0.0-rc.7"}]
2225
end
2326
end

mix.lock

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
%{
2-
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], []},
2+
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.7", "6287f8f2cb45df8584317a4be1075b8c9b8a69de8eeb82b4d9e6c761cf2664cd", [:mix], [{:erlex, ">= 0.2.5", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
3+
"erlex": {:hex, :erlex, "0.2.5", "e51132f2f472e13d606d808f0574508eeea2030d487fc002b46ad97e738b0510", [:mix], [], "hexpm"},
34
}

0 commit comments

Comments
 (0)