Created
August 12, 2016 17:15
-
-
Save odarriba/a9b5a69d8d7031b726cbd8b6bd823d78 to your computer and use it in GitHub Desktop.
CircleCI configuration for Elixir/Phoenix
This file contains hidden or 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" | |
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