Created
December 30, 2015 08:48
-
-
Save parroty/adfdc5e21f08d6a5c547 to your computer and use it in GitHub Desktop.
Elixir build example at CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erlang 18.0 | |
elixir 1.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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