Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (95 sloc) 2.4 KB
version: 2.1
jobs:
build:
docker:
- image: circleci/elixir:1.8.2
environment:
MIX_ENV: test
steps:
- checkout
- run: mix local.hex --force
- run: mix local.rebar --force
- restore_cache:
key: v1-deps-cache-{{ checksum "mix.lock" }}
- run: mix do deps.get, deps.compile
- save_cache:
key: v1-deps-cache-{{ checksum "mix.lock" }}
paths:
- deps
- ~/.mix
- _build
- run: mix compile
- run: echo "$OTP_VERSION $ELIXIR_VERSION" > .version_file
- restore_cache:
keys:
- plt-cache-{{ checksum ".version_file" }}-{{ checksum "mix.lock" }}
- run: mix dialyzer --plt
- save_cache:
key: plt-cache-{{ checksum ".version_file" }}-{{ checksum "mix.lock" }}
paths:
- _build
- deps
- ~/.mix
dialyzer:
docker:
- image: circleci/elixir:1.8.2
environment:
MIX_ENV: test
steps:
- checkout
- run: echo "$OTP_VERSION $ELIXIR_VERSION" > .version_file
- restore_cache:
keys:
- plt-cache-{{ checksum ".version_file" }}-{{ checksum "mix.lock" }}
- run:
name: Execute dialyzer
command: mix dialyzer --halt-exit-status
test:
docker:
- image: circleci/elixir:1.8.2
steps:
- checkout
- restore_cache:
key: v1-deps-cache-{{ checksum "mix.lock" }}
- run: mix coveralls.html
- store_artifacts:
path: cover
destination: coverage_results
generate_documentation:
docker:
- image: circleci/elixir:1.8.2
environment:
MIX_ENV: test
steps:
- checkout
- restore_cache:
key: v1-deps-cache-{{ checksum "mix.lock" }}
- run: mix docs
- store_artifacts:
path: doc
destination: documentation
format_check:
docker:
- image: circleci/elixir:1.8.2
environment:
MIX_ENV: test
steps:
- checkout
- run: mix format --check-formatted
workflows:
version: 2
build_and_test:
jobs:
- build
- format_check:
requires:
- build
- generate_documentation:
requires:
- build
- dialyzer:
requires:
- build
- test:
requires:
- build
You can’t perform that action at this time.