-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
42 lines (40 loc) · 1.06 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 2
jobs:
build:
docker:
- image: elixir:1.5.2
environment:
MIX_ENV: test
steps:
- checkout
- run:
name: Install hex, rebar, and dependencies
command: |
mix local.hex --force
mix local.rebar --force
mix deps.get
- restore_cache:
keys:
- cache-{{ arch }}-{{ checksum "mix.lock" }}-{{ checksum "mix.exs" }}
- cache-{{ arch }}-{{ checksum "mix.lock" }}
- cache-{{ arch }}
- run:
name: Test warning-free compilation
command: |
mix compile
mix clean
mix compile --warnings-as-errors
- run:
name: Dialyzer
command: mix dialyzer --halt-exit-status
- run:
name: Credo
command: mix credo
- run:
name: Elixir Tests
command: mix test
- save_cache:
key: cache-{{ arch }}-{{ checksum "mix.lock" }}-{{ checksum "mix.exs" }}
paths:
- deps/
- _build/test/