From 6e093db145eb02e56fcced9473b8639690f6b1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= Date: Fri, 23 Dec 2016 15:15:31 +0000 Subject: [PATCH] =?UTF-8?q?Add=20Badges=20&=20CI=E2=80=99s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .coveralls.yml | 2 ++ .travis.yml | 4 ++++ README.md | 4 ++++ mix.exs | 7 +++++-- mix.lock | 5 +++++ 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..5c2fd62 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: travis-pro +repo_token: CM7dsvjbAsykNcLEE2BnAVpx6zTtrBJpI diff --git a/.travis.yml b/.travis.yml index 99e8321..494b191 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,7 @@ notifications: email: on_success: change on_failure: change +after_script: + - MIX_ENV=docs mix deps.get + - MIX_ENV=docs mix inch.report + - MIX_ENV=test mix coveralls.travis diff --git a/README.md b/README.md index cd31fe2..4cd7407 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Crontab +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/sk-t/crontab/master/LICENSE) [![Build Status](https://travis-ci.org/sk-t/crontab.svg?branch=master)](https://travis-ci.org/sk-t/crontab) +[![Hex.pm Version](https://img.shields.io/hexpm/v/crontab.svg?style=flat)](https://hex.pm/packages/crontab) +[![InchCI](https://inch-ci.org/github/sk-t/crontab.svg?branch=master)](https://inch-ci.org/github/sk-t/crontab) +[![Coverage Status](https://coveralls.io/repos/github/sk-t/crontab/badge.svg?branch=master)](https://coveralls.io/github/sk-t/crontab?branch=master) Parse Cron Format Strings, Write Cron Format Strings and Caluclate Execution Dates. diff --git a/mix.exs b/mix.exs index 5e0159f..33476fe 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,8 @@ defmodule Crontab.Mixfile do start_permanent: Mix.env == :prod, description: description(), package: package(), - deps: deps()] + deps: deps(), + test_coverage: [tool: ExCoveralls]] end # Configuration for the OTP application @@ -36,7 +37,9 @@ defmodule Crontab.Mixfile do # Type "mix help deps" for more examples and options defp deps do [{:timex, "~> 3.0"}, - {:ex_doc, ">= 0.0.0", only: :dev}] + {:ex_doc, ">= 0.0.0", only: :dev}, + {:inch_ex, only: :docs}, + {:excoveralls, "~> 0.4", only: [:dev, :test]}] end defp package do diff --git a/mix.lock b/mix.lock index 9824e9d..5a228e7 100644 --- a/mix.lock +++ b/mix.lock @@ -2,11 +2,16 @@ "combine": {:hex, :combine, "0.9.3", "192e609b48b3f2210494e26f85db1712657be1a8f15795656710317ea43fc449", [:mix], []}, "earmark": {:hex, :earmark, "1.0.3", "89bdbaf2aca8bbb5c97d8b3b55c5dd0cff517ecc78d417e87f1d0982e514557b", [:mix], []}, "ex_doc": {:hex, :ex_doc, "0.14.5", "c0433c8117e948404d93ca69411dd575ec6be39b47802e81ca8d91017a0cf83c", [:mix], [{:earmark, "~> 1.0", [hex: :earmark, optional: false]}]}, + "excoveralls": {:hex, :excoveralls, "0.5.7", "5d26e4a7cdf08294217594a1b0643636accc2ad30e984d62f1d166f70629ff50", [:mix], [{:exjsx, "~> 3.0", [hex: :exjsx, optional: false]}, {:hackney, ">= 0.12.0", [hex: :hackney, optional: false]}]}, + "exjsx": {:hex, :exjsx, "3.2.1", "1bc5bf1e4fd249104178f0885030bcd75a4526f4d2a1e976f4b428d347614f0f", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, optional: false]}]}, "gettext": {:hex, :gettext, "0.13.0", "daafbddc5cda12738bb93b01d84105fe75b916a302f1c50ab9fb066b95ec9db4", [:mix], []}, "hackney": {:hex, :hackney, "1.6.3", "d489d7ca2d4323e307bedc4bfe684323a7bf773ecfd77938f3ee8074e488e140", [:mix, :rebar3], [{:certifi, "0.7.0", [hex: :certifi, optional: false]}, {:idna, "1.2.0", [hex: :idna, optional: false]}, {:metrics, "1.0.1", [hex: :metrics, optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, optional: false]}]}, "idna": {:hex, :idna, "1.2.0", "ac62ee99da068f43c50dc69acf700e03a62a348360126260e87f2b54eced86b2", [:rebar3], []}, + "inch_ex": {:hex, :inch_ex, "0.5.5", "b63f57e281467bd3456461525fdbc9e158c8edbe603da6e3e4671befde796a3d", [:mix], [{:poison, "~> 1.5 or ~> 2.0 or ~> 3.0", [hex: :poison, optional: false]}]}, + "jsx": {:hex, :jsx, "2.8.1", "1453b4eb3615acb3e2cd0a105d27e6761e2ed2e501ac0b390f5bbec497669846", [:mix, :rebar3], []}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], []}, "mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], []}, + "poison": {:hex, :poison, "3.0.0", "625ebd64d33ae2e65201c2c14d6c85c27cc8b68f2d0dd37828fde9c6920dd131", [:mix], []}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], []}, "timex": {:hex, :timex, "3.1.5", "413d6d8d6f0162a5d47080cb8ca520d790184ac43e097c95191c7563bf25b428", [:mix], [{:combine, "~> 0.7", [hex: :combine, optional: false]}, {:gettext, "~> 0.10", [hex: :gettext, optional: false]}, {:tzdata, "~> 0.1.8 or ~> 0.5", [hex: :tzdata, optional: false]}]}, "tzdata": {:hex, :tzdata, "0.5.9", "575be217b039057a47e133b72838cbe104fb5329b19906ea4e66857001c37edb", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, optional: false]}]}}