Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (41 sloc) 1.08 KB
version: 2
jobs:
build:
docker:
# Bump cache key version below when changing elixir version
- image: circleci/elixir:1.5.3
# resource_class: medium+
steps:
- checkout
- restore_cache:
keys:
- v3-dependency-cache-{{ checksum "mix.lock" }}
- v3-dependency-cache
- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- run: mix deps.compile
- run: mix compile
- run:
command: mix compile
environment:
MIX_ENV: test
- save_cache:
key: v3-dependency-cache-{{ checksum "mix.lock" }}
paths:
- _build
- deps
- ~/.mix
- restore_cache:
keys:
- v3-plt-cache-{{ checksum "mix.lock" }}
- v3-plt-cache
- run: mix dialyzer --plt
- save_cache:
key: v3-plt-cache-{{ checksum "mix.lock" }}
paths:
- _build
- ~/.mix
- run: mix dialyzer --halt-exit-status
- run: mix credo
- run: mix test