Skip to content

Commit

Permalink
Try and cache PLT in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 1, 2018
1 parent 5c7b704 commit b57bc29
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Expand Up @@ -5,9 +5,20 @@ elixir:
- 1.7
otp_release:
- 21.0
env:
- "PLT_DIR=$HOME/.plt"
cache:
directories:
- _build
- deps
- $PLT_DIR
before_script:
- "mkdir -p $PLT_DIR"
- "mix do deps.get, dialyzer --plt"
- "MIX_ENV=test mix deps.get"
script:
- "mix do deps.get, compile-check"
- "MIX_ENV=test mix do deps.get, mix test"
- "mix compile-check"
- "MIX_ENV=test mix do compile, test"
notifications:
recipients:
- paulschoenfelder@gmail.com
3 changes: 2 additions & 1 deletion mix.exs
Expand Up @@ -88,7 +88,8 @@ defmodule Toml.MixProject do
defp dialyzer do
[
ignore_warnings: "dialyzer.ignore",
flags: [:error_handling, :underspecs, :unmatched_returns]
flags: [:error_handling, :underspecs, :unmatched_returns],
plt_core_path: System.get_env("PLT_PATH") || System.get_env("MIX_HOME"),
]
end

Expand Down

0 comments on commit b57bc29

Please sign in to comment.