Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Elixir build example at CircleCI
erlang 18.0
elixir 1.1.1
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
dependencies:
cache_directories:
- ~/.asdf
pre:
- 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
- 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.rebar --force
- yes | mix deps.get
test:
override:
- mix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment