• Stars
    star
    24
  • Rank 986,245 (Top 20 %)
  • Language
    Perl
  • License
    Other
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Actions Status Actions Status Actions Status

NAME

Devel::Cover::Report::Coveralls - coveralls backend for Devel::Cover

USAGE

GitHub Actions

1. Add your repo to coveralls. https://coveralls.io/repos/new

2. Add settings to one of your GitHub workflows. Here assuming you're calling it .github/workflows/ci.yml:

jobs:
  ubuntu:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest]
        perl-version: ['5.10', '5.14', '5.20']
        include:
          - perl-version: '5.30'
            os: ubuntu-latest
            release-test: true
            coverage: true
    container: perl:${{ matrix.perl-version }}
    steps:
      - uses: actions/checkout@v2
      # do other stuff like installing external deps here
      - run: cpanm -n --installdeps .
      - run: perl -V
      - name: Run release tests # before others as may install useful stuff
        if: ${{ matrix.release-test }}
        env:
          RELEASE_TESTING: 1
        run: |
          cpanm -n --installdeps --with-develop .
          prove -lr xt
      - name: Run tests (no coverage)
        if: ${{ !matrix.coverage }}
        run: prove -l t
      - name: Run tests (with coverage)
        if: ${{ matrix.coverage }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          cpanm -n Devel::Cover::Report::Coveralls
          cover -test -report Coveralls

3. Push new change to GitHub

4. Coveralls should update your project page

Travis CI

1. Add your repo to coveralls. https://coveralls.io/repos/new

2. Add setting to .travis.yaml (before_install and script section)

language: perl
perl:
  - 5.16.3
  - 5.14.4
before_install:
  cpanm -n Devel::Cover::Report::Coveralls
script:
  perl Build.PL && ./Build build && cover -test -report coveralls

3. push new change to github

4. updated coveralls your project page

another CI

1. Get repo_token from your project page in coveralls.

2. Write .coveralls.yml (don't add this to public repo)

repo_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3. Run CI.

DESCRIPTION

https://coveralls.io/ is service to publish your coverage stats online with a lot of nice features. This module provides seamless integration with Devel::Cover in your perl projects.

ENVIRONMENT

Set these environment variables to control the behaviour. Various other variables, set by particular CI environments, will be interpreted silently and correctly.

COVERALLS_REPO_TOKEN

The Coveralls authentication token for this particular repo.

COVERALLS_ENDPOINT

If you have an enterprise installation, set this to change from the default of https://coveralls.io. The rest of the URL (/api, etc) won't change, and will be correct.

COVERALLS_FLAG_NAME

Describe the particular tests being done, e.g. Unit or Functional.

COVERALLS_PARALLEL

Set this to true in case you run your tests in a parallel environment. It is important to note though: If you use this feature, you must ensure that your CI solution calls the parallel webhook when everything is done. Moreover, regardless of what CI you use, you have to make sure that the build_number is constant across the different jobs, otherwise coveralls is unable to group them together as one build.

See https://docs.coveralls.io/parallel-build-webhook

SEE ALSO

https://coveralls.io/ https://coveralls.io/docs https://github.com/coagulant/coveralls-python Devel::Cover

EXAMPLE

https://coveralls.io/r/kan/p5-smart-options

LICENSE

Copyright (C) Kan Fushihara

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Kan Fushihara [email protected]

More Repositories

1

moxy

Mobile web development proxy
Perl
29
star
2

p5-anyevent-irc-server

AnyEvent::IRC::Server
Perl
20
star
3

xircd

Pluggable IRC Server
Perl
16
star
4

LDRoid

LDR(livedoor reader) client for android
Java
13
star
5

p5-prettyfs

simply file storage
Perl
13
star
6

p5-acme-prettycure

All about Japanese battle heroine "Pretty Cure"
Perl
12
star
7

p5-smart-options

simple argument option parser
Perl
10
star
8

p5-donburi

simple web2irc notifer
Perl
9
star
9

ime-switcher

IME switch key manager for macOS
Swift
8
star
10

million-timer

プロデュース支援装置
Go
7
star
11

soozy-slack

code for http://soozy.fushihara.net/
HTML
7
star
12

p5-opts

DSL for command line option parse
Perl
6
star
13

p5-swf-generator

swf(adobe flash file) generator for perl5
Perl
6
star
14

franz-plugin-qiita

JavaScript
4
star
15

wema

simple web tag app
JavaScript
4
star
16

aYAPCAsia2010

YAPC::Asia 2010 time table viewer
Java
4
star
17

p5-dbix-skinny-object

given Class::DBI like interface for DBIx::Skinny
Perl
4
star
18

p5-sledge-config-extended

Perl
3
star
19

franz-plugin-mastodon

franz integration for mastodon
JavaScript
3
star
20

franz-plugin-instagram

JavaScript
3
star
21

cmd-eikana

simple key switcher for OSX
Swift
3
star
22

p5-web-service-mailgun

API client for https://mailgun.com/
Perl
2
star
23

Green

android's multi picture live wallpaper
Java
2
star
24

go-retro-bot

retrobot ( https://github.com/mirakui/retrobot ) that was written by golang
Go
2
star
25

p5-dbic-random-string-columns

DBIC plugin - generate random string
Perl
2
star
26

p6-soozy-slack

soozy.slack.com 's frontend
HTML
2
star
27

p5-sledge-sessionmanager-mobileid

Sledge Session Manager for MobileID
1
star
28

clap

simple and tiny web app framework
Perl
1
star
29

franz-plugin-pixiv

JavaScript
1
star
30

YAViewer2011

YAPC::Asia 2011 talk list viewer
Java
1
star
31

p5-webservice-tvsonet

tiny client for http://tv.so-net.ne.jp/
Perl
1
star
32

memo

1
star
33

p5-sledge-sessionmanager-auto

Sledge Session Manager for auto change at UserAgent
1
star
34

p5-sledge-config-yaml

Sledge Config Loader for YAML
Perl
1
star