Skip to content

Instantly share code, notes, and snippets.

@odarriba
Created August 12, 2016 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odarriba/a9b5a69d8d7031b726cbd8b6bd823d78 to your computer and use it in GitHub Desktop.
Save odarriba/a9b5a69d8d7031b726cbd8b6bd823d78 to your computer and use it in GitHub Desktop.
CircleCI configuration for Elixir/Phoenix
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
MIX_ENV: "test"
dependencies:
cache_directories:
- ~/.asdf
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 plugin-update erlang
- asdf plugin-update elixir
- asdf install
- cp config/test.ci.exs config/test.exs
- yes | mix deps.get
- yes | mix local.rebar
database:
override:
- mix ecto.drop
- mix ecto.create
- mix ecto.migrate
test:
override:
- mix test
experimental:
notify:
branches:
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment