diff options
author | Sobolev Nikita <mail@sobolevn.me> | 2016-09-09 02:47:07 +0300 |
---|---|---|
committer | Sam Seay <sam@manuka.co> | 2016-09-09 11:47:07 +1200 |
commit | 0584037b09355e8e574227dfa74aedb139d6a1a2 (patch) | |
tree | 8b2194eb702db95925247170eccbd7c30f20978d | |
parent | 8b77a3c045c81061f50f44716d60a96787203a5f (diff) | |
download | recaptcha-0584037b09355e8e574227dfa74aedb139d6a1a2.tar.gz recaptcha-0584037b09355e8e574227dfa74aedb139d6a1a2.tar.xz |
Added `coveralls` support. (#11)
Changes:
1. Added `deps`
2. Refactored `.travis.yml` with multiple elixir versions and pushing stats to coveralls.io
3. Added coverage badge to `README.md`
4. Added ignore pattern for `cover/` folder
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | mix.exs | 26 | ||||
-rw-r--r-- | mix.lock | 3 |
5 files changed, 32 insertions, 9 deletions
@@ -2,3 +2,4 @@ erl_crash.dump /deps /doc +/cover diff --git a/.travis.yml b/.travis.yml index 7d38ef9..eea98d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: elixir +sudo: false + elixir: + - 1.2.6 - 1.3.2 -script: mix test && mix credo --strict +env: MIX_ENV=test + +script: + - mix coveralls.html && mix credo --strict + - mix coveralls.travis @@ -1,6 +1,6 @@ # Recaptcha -![Build Status](https://travis-ci.org/samueljseay/recaptcha.svg?branch=master) +![Build Status](https://travis-ci.org/samueljseay/recaptcha.svg?branch=master) ![Coverage Status](https://coveralls.io/repos/github/samueljseay/recaptcha/badge.svg?branch=master) A simple Elixir package for implementing [reCAPTCHA] in Elixir applications. @@ -2,12 +2,23 @@ defmodule Recaptcha.Mixfile do use Mix.Project def project do - [app: :recaptcha, - version: "2.0.1", - elixir: "~> 1.2", - description: description, - deps: deps, - package: package] + [ + app: :recaptcha, + version: "2.0.1", + elixir: "~> 1.2", + description: description(), + deps: deps(), + package: package(), + + # Test coverage: + test_coverage: [tool: ExCoveralls], + preferred_cli_env: [ + "coveralls": :test, + "coveralls.detail": :test, + "coveralls.post": :test, + "coveralls.html": :test, + ], + ] end def application do @@ -26,7 +37,8 @@ defmodule Recaptcha.Mixfile do {:httpoison, "~> 0.9.0"}, {:poison, "~> 1.5 or ~> 2.0"}, {:credo, "~> 0.4", only: [:dev, :test]}, - {:ex_doc, ">= 0.0.0", only: :dev} + {:ex_doc, ">= 0.0.0", only: :dev}, + {:excoveralls, "~> 0.5", only: :test}, ] end @@ -3,11 +3,14 @@ "credo": {:hex, :credo, "0.4.11", "03a64e9d53309b7132556284dda0be57ba1013885725124cfea7748d740c6170", [:mix], [{:bunt, "~> 0.1.6", [hex: :bunt, optional: false]}]}, "earmark": {:hex, :earmark, "1.0.1", "2c2cd903bfdc3de3f189bd9a8d4569a075b88a8981ded9a0d95672f6e2b63141", [:mix], []}, "ex_doc": {:hex, :ex_doc, "0.13.0", "aa2f8fe4c6136a2f7cfc0a7e06805f82530e91df00e2bff4b4362002b43ada65", [:mix], [{:earmark, "~> 1.0", [hex: :earmark, optional: false]}]}, + "excoveralls": {:hex, :excoveralls, "0.5.6", "35a903f6f78619ee7f951448dddfbef094b3a0d8581657afaf66465bc930468e", [:mix], [{:exjsx, "~> 3.0", [hex: :exjsx, optional: false]}, {:hackney, ">= 0.12.0", [hex: :hackney, optional: false]}]}, + "exjsx": {:hex, :exjsx, "3.2.0", "7136cc739ace295fc74c378f33699e5145bead4fdc1b4799822d0287489136fb", [:mix], [{:jsx, "~> 2.6.2", [hex: :jsx, optional: false]}]}, "hackney": {:hex, :hackney, "1.6.1", "ddd22d42db2b50e6a155439c8811b8f6df61a4395de10509714ad2751c6da817", [:rebar3], [{:certifi, "0.4.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.0", [hex: :ssl_verify_fun, optional: false]}]}, "httpoison": {:hex, :httpoison, "0.9.1", "6c2b4eaf2588a6f3ef29663d28c992531ca3f0bc832a97e0359bc822978e1c5d", [:mix], [{:hackney, "~> 1.6.0", [hex: :hackney, optional: false]}]}, "httpotion": {:hex, :httpotion, "2.1.0"}, "ibrowse": {:git, "https://github.com/cmullaparthi/ibrowse.git", "ea3305d21f37eced4fac290f64b068e56df7de80", [tag: "v4.1.2"]}, "idna": {:hex, :idna, "1.2.0", "ac62ee99da068f43c50dc69acf700e03a62a348360126260e87f2b54eced86b2", [:rebar3], []}, + "jsx": {:hex, :jsx, "2.6.2", "213721e058da0587a4bce3cc8a00ff6684ced229c8f9223245c6ff2c88fbaa5a", [:mix, :rebar], []}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], []}, "mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], []}, "poison": {:hex, :poison, "2.2.0", "4763b69a8a77bd77d26f477d196428b741261a761257ff1cf92753a0d4d24a63", [:mix], []}, |