Skip to content

Commit

Permalink
Merge 2559ba7 into b1f042a
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGagne committed Feb 1, 2020
2 parents b1f042a + 2559ba7 commit 748b86c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ otp_release:
script:
- rebar3 check

after_success:
- rebar3 coveralls send

cache:
directories:
- "$HOME/.cache/rebar3"
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ robots
.. image:: https://travis-ci.org/AntoineGagne/robots.svg?branch=master
:target: https://travis-ci.org/AntoineGagne/robots

.. image:: http://img.shields.io/hexpm/v/robots.svg?style=flat
:target: https://hex.pm/packages/robots

.. image:: https://img.shields.io/github/release/AntoineGagne/robots?color=brightgreen
:target: https://github.com/AntoineGagne/robots/releases

.. image:: https://coveralls.io/repos/github/AntoineGagne/robots/badge.svg?branch=master
:target: https://coveralls.io/github/AntoineGagne/robots?branch=master


:Author: `Antoine Gagné <gagnantoine@gmail.com>`_

.. contents::
Expand Down
10 changes: 9 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{minimum_otp_vsn, "21.0"}.

{alias, [
{check, [lint, xref, dialyzer, edoc,
{eunit, "-c"}, {ct, "-c"}, {proper, "-c"},
Expand All @@ -8,6 +10,7 @@

{dialyzer, [{warnings, [unknown]}]}.

{edoc_opts, []}.
{erl_opts, [
debug_info,
warn_unused_import,
Expand Down Expand Up @@ -35,9 +38,14 @@
{rebar3_proper, "0.11.1"},
{rebar3_lint, {git, "https://github.com/project-fifo/rebar3_lint.git", {tag, "0.1.2"}}},
{rebar3_todo, {git, "https://github.com/ferd/rebar3_todo.git", {branch, "master"}}},
rebar3_hex
rebar3_hex,
coveralls
]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.

{elvis,
[#{dirs => ["apps/*/src/**",
"apps/*/test/**"],
Expand Down
9 changes: 9 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
[{coveralls_service_job_id, JobId},
{coveralls_coverdata, "_build/test/cover/*.coverdata"},
{coveralls_service_name , "travis-ci"} | CONFIG];
_ ->
CONFIG
end.

0 comments on commit 748b86c

Please sign in to comment.