Skip to content

Instantly share code, notes, and snippets.

@parroty
Created December 30, 2015 08:48
Show Gist options
  • Save parroty/adfdc5e21f08d6a5c547 to your computer and use it in GitHub Desktop.
Save parroty/adfdc5e21f08d6a5c547 to your computer and use it in GitHub Desktop.
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