Last Updated: September 12, 2016
·
424
· schneidmaster

Configure CircleCI for Elixir + Phoenix integration tests

Click here for the gist (more readable since Coderwall doesn't indent markdown/yml)


circle.yml:
machine: environment: PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH" dependencies: cache_directories: - ~/.asdf - _build - deps pre: - if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi - if ! asdf plugin-list | grep erlang; then asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git; fi - if ! asdf plugin-list | grep elixir; then asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git; fi - asdf install override: - yes | mix deps.get - yes | mix local.rebar database: override: - mix ecto.setup test: override: - mix test

.tool-versions (also in application root):
erlang 18.0 elixir 1.3.1