Skip to content

Instantly share code, notes, and snippets.

@parroty
Created December 30, 2015 08:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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