-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
36 lines (35 loc) · 1.5 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
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
ERLANG_VERSION: "19.0"
ELIXIR_VERSION: "1.3.2"
dependencies:
pre:
# - script/circleci/prepare.sh
- if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi
# - asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git
# - asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git
# - asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
- asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git || echo okay...
- asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git || echo okay...
# - erlang_version=$(awk '/erlang/ { print $2 }' .tool-versions) && asdf install erlang ${erlang_version}
# - erlang_version=18.0 && asdf install erlang ${erlang_version}
# - elixir_version=$(awk '/elixir/ { print $2 }' .tool-versions) && asdf install elixir ${elixir_version}
# - elixir_version=1.3.4 && asdf install elixir ${elixir_version}
# - mix local.rebar --force
# - yes | MIX_ENV=test mix deps.get
- echo -e "erlang $ERLANG_VERSION\nelixir $ELIXIR_VERSION\n" > .tool-versions
- asdf install
- MIX_ENV=test mix do local.hex --force, hex.info, local.rebar --force, deps.get, deps.compile
cache_directories:
- ~/.asdf
- ~/dependencies
- ~/.mix
- _build
- deps
test:
override:
# - script/circleci/test.sh
- MIX_ENV=test mix test --no-start
post:
- script/circleci/post.sh