-
Notifications
You must be signed in to change notification settings - Fork 12
/
circle.yml
27 lines (25 loc) · 897 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
25
26
27
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
services:
- redis
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 ecto.create
cache_directories:
- ~/.asdf
- ~/.mix
- deps
- _build
test:
override:
- mix test