mirror of
https://github.com/valitydev/yamerl.git
synced 2024-11-06 02:45:23 +00:00
Export testsuite coverage resutls to coveralls.io
This commit is contained in:
parent
03dda063ea
commit
dd895dc73b
@ -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:
|
||||
|
@ -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
|
||||
|
10
rebar.config
10
rebar.config
@ -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
10
rebar.config.script
Normal 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.
|
Loading…
Reference in New Issue
Block a user