Skip to content

Commit

Permalink
fail ci if dialyzer fails, add more caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Apr 11, 2018
1 parent 1823e84 commit 6f0c636
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,42 @@ jobs:
- checkout
- run: git submodule sync --recursive
- run: git submodule update --recursive --init

- restore_cache:
key: _build
keys:
- v1-dependency-cache-{{ arch }}-{{ checksum "mix.lock" }}
- v1-dependency-cache-{{ arch }}
- v1-dependency-cache

- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- run:
command: mix compile
environment:
MIX_ENV: test

- save_cache:
key: v1-dependency-cache-{{ arch }}-{{ checksum "mix.lock" }}
paths:
- _build
- deps
- ~/.mix

- run: mix test
- run: mix dialyzer

- restore_cache:
keys:
- v1-plt-cache-{{ arch }}-{{ checksum "mix.lock" }}
- v1-plt-cache-{{ arch }}
- v1-plt-cache

- run: mix dialyzer --plt

- save_cache:
key: _build
key: v1-plt-cache-{{ arch }}-{{ checksum "mix.lock" }}
paths:
- _build
- ~/.mix

- run: mix dialyzer --halt-exit-status

0 comments on commit 6f0c636

Please sign in to comment.