From dd8efeb36c12af2fb4915db38ff9a8b4036c2c9e Mon Sep 17 00:00:00 2001 From: Denver Abrey Date: Tue, 8 Oct 2019 17:54:41 +0200 Subject: [PATCH 1/5] Add in CI, #27 --- .travis-ci.yml | 12 ++++++++++++ mix.exs | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .travis-ci.yml diff --git a/.travis-ci.yml b/.travis-ci.yml new file mode 100644 index 0000000..7342db2 --- /dev/null +++ b/.travis-ci.yml @@ -0,0 +1,12 @@ +language: elixir +elixir: + - 1.6 + - 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/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 From a40747fec56dcbcee6ef0789ca71490130e3ed19 Mon Sep 17 00:00:00 2001 From: Denver Abrey Date: Tue, 8 Oct 2019 18:02:29 +0200 Subject: [PATCH 2/5] Correct .travis.yml filename --- .travis-ci.yml => .travis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .travis-ci.yml => .travis.yml (100%) diff --git a/.travis-ci.yml b/.travis.yml similarity index 100% rename from .travis-ci.yml rename to .travis.yml From 0be2fa241b452d2341f1b29ac4b33238ae2467ad Mon Sep 17 00:00:00 2001 From: Denver Abrey Date: Tue, 8 Oct 2019 18:08:06 +0200 Subject: [PATCH 3/5] Remove unsupported elixir versions --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7342db2..3745647 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: elixir elixir: - - 1.6 + - 1.7 - 1.8 - 1.9 otp_release: From 314105f05739171c1b1941bc0f517d4329ec067b Mon Sep 17 00:00:00 2001 From: Denver Abrey Date: Tue, 8 Oct 2019 18:13:00 +0200 Subject: [PATCH 4/5] Add build and coverage badgest to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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 From 760b0b28917f7bb28edd4df4dbe5489c8099fecf Mon Sep 17 00:00:00 2001 From: Denver Abrey Date: Tue, 8 Oct 2019 18:13:00 +0200 Subject: [PATCH 5/5] Add build and coverage badges to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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