Skip to content

Commit 06574c8

Browse files
committed
ci: get test coverage working again
1 parent dfe319b commit 06574c8

File tree

3 files changed

+51
-13
lines changed

3 files changed

+51
-13
lines changed

.github/workflows/coveralls.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Coveralls
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
7+
coverage:
8+
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 10
14+
fetch-tags: true
15+
16+
- name: Install Perl
17+
uses: shogo82148/actions-setup-perl@v1
18+
with:
19+
perl-version: 5.38
20+
21+
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2
22+
23+
- name: Coveralls
24+
uses: mihyaeru21/actions-report-coveralls-perl@v1
25+
26+
# - name: install Devel::Cover
27+
# uses: perl-actions/install-with-cpanm@v1
28+
# with:
29+
# sudo: true
30+
# install: |
31+
# Devel::Cover
32+
33+
- run: cpanm --installdeps -n -f ClamAV::Client Redis Time::TAI64
34+
- run: cpanm --installdeps -n -f .
35+
36+
- name: Run tests with coverage
37+
env:
38+
HARNESS_PERL_SWITCHES: '-MDevel::Cover=+ignore,^t/'
39+
run: prove -lrv t

Makefile.PL

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ WriteMakefile(
1717
'Net::IP' => 1.26,
1818
'Time::HiRes' => 0,
1919
'IO::Socket::SSL' => 0,
20-
'ClamAV::Client' => 0, # virus/clamdscan
2120
# Dev/Test modules
2221
'Test::More' => 0,
2322
'Test::Output' => 0,
2423
# modules for specific features
24+
'ClamAV::Client' => 0, # virus/clamdscan
25+
'File::NFSLock' => 0,
26+
'File::Tail' => 0, # log/summarize, log/watch
27+
'GeoIP2' => 2,
2528
'Mail::SPF' => 1,
2629
'Mail::DKIM' => 0.40,
2730
'Mail::DMARC' => 0,
28-
'File::Tail' => 0, # log/summarize, log/watch
29-
'Time::TAI64' => 0, # log2sql
30-
'Redis' => 0,
31-
# 'DBI' => 0, # auth_vpopmail_sql and
32-
# 'DBD::mysql' => 0, # log2sql
33-
# 'DBIx::Simple' => 0, # log2sql
34-
'GeoIP2' => 2,
3531
'Mail::SpamAssassin' => 0,
36-
'Math::Complex' => 0, # geodesic distance in Geo::IP
37-
'PerlIO::gzip' => 0, # gunzip GeoIP databases
38-
'File::NFSLock' => 0,
32+
'Time::TAI64' => 0, # log2sql
33+
'Redis' => 0,
34+
# 'DBI' => 0, # auth_vpopmail_sql and
35+
# 'DBD::mysql' => 0, # log2sql
36+
# 'DBIx::Simple' => 0, # log2sql
37+
'Math::Complex' => 0, # geodesic distance in Geo::IP
3938
},
4039
ABSTRACT => 'Flexible smtpd daemon written in Perl',
4140
AUTHOR => 'Ask Bjoern Hansen <[email protected]>',

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ the logfile on a webserver and include a reference to it in the mail.
178178

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

0 commit comments

Comments
 (0)