diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..5d9f192 --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +erlang 19.0 +elixir 1.3.2 diff --git a/README.md b/README.md index e660628..c9ab3d4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CircleCI](https://circleci.com/gh/thoughtbot/redbird.svg?style=svg&circle-token=ffeb06ba85ab9e15f98730027745be851d647b61&branch=master)](https://circleci.com/gh/thoughtbot/redbird) + # Redbird **Redbird is part of the [thoughtbot Elixir family][elixir-phoenix] of projects.** diff --git a/bin/test_suite b/bin/test_suite old mode 100644 new mode 100755 diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..d5307a8 --- /dev/null +++ b/circle.yml @@ -0,0 +1,22 @@ +machine: + environment: + PATH: "./bin:$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH" + services: + - redis +dependencies: + 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 || true + - asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git || true + - asdf install + - mix local.hex --force + - mix local.rebar --force + - yes | mix deps.get + cache_directories: + - ~/.mix + - ~/.asdf + - deps +test: + override: + - MIX_ENV=prod mix compile --warnings-as-errors + - bin/test_suite