diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3745647 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: elixir +elixir: + - 1.7 + - 1.8 + - 1.9 +otp_release: + - 21.3 + - 20.3 +env: + - MIX_ENV=test +script: + - "mix do deps.get, compile, coveralls.travis" \ No newline at end of file diff --git a/README.md b/README.md index 0b83b88..820a405 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](https://travis-ci.org/belfastelixir/DMS.svg?branch=master)](https://travis-ci.org/belfastelixir/DMS) +[![Coverage Status](https://coveralls.io/repos/github/belfastelixir/DMS/badge.svg?branch=master)](https://coveralls.io/github/belfastelixir/DMS?branch=master) + # DMS (Dead Man's Switch) A simple OTP Application (and eventually an HTTP API) which enables short diff --git a/mix.exs b/mix.exs index 33cfa89..53dfa5a 100644 --- a/mix.exs +++ b/mix.exs @@ -15,7 +15,9 @@ defmodule DMS.MixProject do main: "DMS", extras: ["README.md"] ], - elixirc_paths: elixirc_paths(Mix.env()) + elixirc_paths: elixirc_paths(Mix.env()), + test_coverage: [tool: ExCoveralls], + preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test] ] end @@ -41,7 +43,8 @@ defmodule DMS.MixProject do {:credo, "~> 1.0", only: [:dev]}, {:dialyxir, "~> 0.5.1", only: [:dev]}, {:ex_doc, "~> 0.19", only: [:dev], runtime: false}, - {:stream_data, "~> 0.4.3", only: [:test]} + {:stream_data, "~> 0.4.3", only: [:test]}, + {:excoveralls, "~> 0.10", only: :test} ] end end