Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Coveralls

on: ["push", "pull_request"]

jobs:

coverage:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
fetch-tags: true

- name: Install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: 5.38

- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2

- name: Coveralls
uses: mihyaeru21/actions-report-coveralls-perl@v1

# - name: install Devel::Cover
# uses: perl-actions/install-with-cpanm@v1
# with:
# sudo: true
# install: |
# Devel::Cover

- run: cpanm --installdeps -n -f ClamAV::Client Redis Time::TAI64
- run: cpanm --installdeps -n -f .

- name: Run tests with coverage
env:
HARNESS_PERL_SWITCHES: '-MDevel::Cover=+ignore,^t/'
run: prove -lrv t
21 changes: 10 additions & 11 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,24 @@ WriteMakefile(
'Net::IP' => 1.26,
'Time::HiRes' => 0,
'IO::Socket::SSL' => 0,
'ClamAV::Client' => 0, # virus/clamdscan
# Dev/Test modules
'Test::More' => 0,
'Test::Output' => 0,
# modules for specific features
'ClamAV::Client' => 0, # virus/clamdscan
'File::NFSLock' => 0,
'File::Tail' => 0, # log/summarize, log/watch
'GeoIP2' => 2,
'Mail::SPF' => 1,
'Mail::DKIM' => 0.40,
'Mail::DMARC' => 0,
'File::Tail' => 0, # log/summarize, log/watch
'Time::TAI64' => 0, # log2sql
'Redis' => 0,
# 'DBI' => 0, # auth_vpopmail_sql and
# 'DBD::mysql' => 0, # log2sql
# 'DBIx::Simple' => 0, # log2sql
'GeoIP2' => 2,
'Mail::SpamAssassin' => 0,
'Math::Complex' => 0, # geodesic distance in Geo::IP
'PerlIO::gzip' => 0, # gunzip GeoIP databases
'File::NFSLock' => 0,
'Time::TAI64' => 0, # log2sql
'Redis' => 0,
# 'DBI' => 0, # auth_vpopmail_sql and
# 'DBD::mysql' => 0, # log2sql
# 'DBIx::Simple' => 0, # log2sql
'Math::Complex' => 0, # geodesic distance in Geo::IP
},
ABSTRACT => 'Flexible smtpd daemon written in Perl',
AUTHOR => 'Ask Bjoern Hansen <[email protected]>',
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ the logfile on a webserver and include a reference to it in the mail.

[cov-img]: https://coveralls.io/repos/smtpd/qpsmtpd/badge.svg
[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd
[ci-img]: https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master
[ci-url]: https://travis-ci.org/smtpd/qpsmtpd
[ci-img]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml

Loading