-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle.yml
More file actions
27 lines (26 loc) · 1.02 KB
/
circle.yml
File metadata and controls
27 lines (26 loc) · 1.02 KB
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
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
dependencies:
cache_directories:
- _build
- deps
- ~/.asdf
pre:
- if ! asdf | grep version; then git clone https://github.com/asdf-vm/asdf.git ~/.asdf; fi
- if ! asdf plugin-list | grep erlang; then asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git; fi
- if ! asdf plugin-list | grep elixir; then asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git; fi
- echo "erlang 19.2" >> .tool-versions
- echo "elixir 1.4.1" >> .tool-versions
- erlang_version=$(awk '/erlang/ { print $2 }' .tool-versions) && asdf install erlang ${erlang_version}
- elixir_version=$(awk '/elixir/ { print $2 }' .tool-versions) && asdf install elixir ${elixir_version}
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- MIX_ENV=test mix compile
- MIX_ENV=test mix dialyzer
test:
override:
- mix test
- MIX_ENV=test mix credo
- MIX_ENV=test mix dialyzer --halt-exit-status