diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..0cc9e80 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,18 @@ +# https://github.com/CircleCI-Public/circleci-demo-elixir-phoenix +version: 2.0 +jobs: + build: + working_directory: ~/exseed + docker: + - image: elixir:1.5.1 + environment: + - MIX_ENV=test + - image: postgres:9.6.3 + environment: + - POSTGRES_USER=postgres + steps: + - checkout + - run: echo "Yes" | mix local.hex + - run: echo "Yes" | mix local.rebar + - run: mix deps.get + - run: mix test diff --git a/README.md b/README.md index b75971a..e31da74 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ An Elixir library that provides a simple DSL for seeding databases through Ecto. Inspired largely by [seed-fu](https://github.com/mbleigh/seed-fu). +[![CircleCI](https://circleci.com/gh/seaneshbaugh/exseed/tree/master.svg?style=svg)](https://circleci.com/gh/seaneshbaugh/exseed/tree/master) + ## Installation In your project's `mix.exs` add the following: