Export testsuite coverage resutls to coveralls.io

This commit is contained in:
Jean-Sébastien Pédron 2016-11-13 14:04:12 +01:00
parent 03dda063ea
commit dd895dc73b
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
4 changed files with 26 additions and 1 deletions

View File

@ -13,9 +13,13 @@ install:
- ./rebar3 update
script:
- ./rebar3 eunit
- ./rebar3 compile
- ./rebar3 eunit skip_deps=true
- ./rebar3 dialyzer
after_success:
- ./rebar3 coveralls send
notifications:
email:
recipients:

View File

@ -1,6 +1,7 @@
# yamerl: YAML 1.2 and JSON parser in Erlang
[![Build Status](https://travis-ci.org/yakaz/yamerl.svg?branch=master)](https://travis-ci.org/yakaz/yamerl)
[![Coverage Status](https://coveralls.io/repos/github/yakaz/yamerl/badge.svg?branch=master)](https://coveralls.io/github/yakaz/yamerl?branch=master)
[![Hex version](https://img.shields.io/hexpm/v/yamerl.svg "Hex version")](https://hex.pm/packages/yamerl)
YAML is a human-friendly data serialization format. The specification

View File

@ -1,2 +1,12 @@
%% -*-erlang-*-
%% vim:ft=erlang:
%% coveralls.io.
{plugins, [{coveralls,
{git, "https://github.com/markusn/coveralls-erl",
{branch, "master"}}}]}.
{cover_enabled, true}.
{cover_print_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/eunit.coverdata"}.
{coveralls_service_name, "travis-ci"}.

10
rebar.config.script Normal file
View File

@ -0,0 +1,10 @@
%% vim:ft=erlang:
case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
lists:keystore(coveralls_service_job_id, 1, CONFIG,
{coveralls_service_job_id, JobId});
_ ->
CONFIG
end.