diff --git a/.travis.yml b/.travis.yml index 0ae8c69..0725910 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ elixir: env: - MIX_ENV=test script: - - mix test + - mix coveralls.travis after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 61c4ba1..b8748fb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # elixir-base58-encode -https://hex.pm/packages/b58 - +[![Hex pm](http://img.shields.io/hexpm/v/b58.svg?style=flat)](https://hex.pm/packages/b58) +[![Build Status](https://travis-ci.org/dwyl/base58encode.svg?branch=master)](https://travis-ci.org/dwyl/base58encode) +[![Coverage Status](https://coveralls.io/repos/dwyl/base58Encode/badge.svg?branch=master)](https://coveralls.io/r/dwyl/base58Encode?branch=master) This module provides the `Base58Encode.encode/1` function which takes an **Elixir binary** and returns its base58 String representation. diff --git a/coveralls.json b/coveralls.json new file mode 100644 index 0000000..fe1bf7d --- /dev/null +++ b/coveralls.json @@ -0,0 +1,8 @@ +{ + "coverage_options": { + "minimum_coverage": 100 + }, + "skip_files": [ + "test/" + ] +} diff --git a/mix.exs b/mix.exs index b7f3b56..059e988 100644 --- a/mix.exs +++ b/mix.exs @@ -31,7 +31,7 @@ defmodule Base58Encode.MixProject do defp aliases do [ - test: ["coveralls"], + test: ["coveralls"] ] end