[#21] Introduce Dialyzer PLT caching through CI step

This commit is contained in:
Joseph Yiasemides 2018-05-15 16:04:48 +02:00
parent 161009afba
commit b7b893bef0
1 changed files with 8 additions and 1 deletions

View File

@ -11,13 +11,20 @@ jobs:
working_directory: ~/repo
steps:
- checkout
- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- run: mix test
- run: mix credo
- restore_cache:
keys:
- dialyzer-PLT-cache-{{ checksum "mix.exs" }}
- dialyzer-PLT-cache
- run: mix dialyzer
- save_cache:
key: dialyzer-PLT-cache-{{ checksum "mix.exs" }}
paths:
- _build
- run: env MIX_ENV=test mix coveralls.circle
- run: env MIX_ENV=test mix coveralls.json
- run: bash <(curl -s https://codecov.io/bash)