-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
24 lines (22 loc) · 872 Bytes
/
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
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
dependencies:
pre:
- if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi
- asdf plugin-list | grep erlang || asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git
- asdf plugin-list | grep elixir || asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git
- 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.plt
cache_directories:
- ~/.asdf
- deps
- _build
test:
override:
- MIX_ENV=test mix ci