Skip to content

Commit

Permalink
Test at Windows with AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed May 10, 2018
1 parent 5b1c014 commit 5a03c89
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .appveyor.yml
@@ -0,0 +1,18 @@
cache:
- C:\strawberry

install:
- if not exist "C:\strawberry" choco install strawberryperl -y
- set PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
- cd %APPVEYOR_BUILD_FOLDER%
- cpanm --quiet --installdeps --with-develop --notest .

build_script:
- perl Build.Pl
- perl Build

test_script:
- perl Build test # test without Pandoc
- cinst -y pandoc
- perl Build test # test again with Pandoc

1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -4,6 +4,7 @@ sudo: required
dist: trusty # includes pandoc 1.12.2.1

perl:
- "5.26"
- "5.24"
- "5.22"
- "5.20"
Expand Down
9 changes: 7 additions & 2 deletions lib/Pod/Pandoc.pm
Expand Up @@ -20,7 +20,8 @@ Pod::Pandoc - process Plain Old Documentation format with Pandoc
# STATUS
[![Build Status](https://travis-ci.org/nichtich/Pod-Pandoc.svg)](https://travis-ci.org/nichtich/Pod-Pandoc)
[![Unix Build Status](https://travis-ci.org/nichtich/Pod-Pandoc.svg)](https://travis-ci.org/nichtich/Pod-Pandoc)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/lfskwt20v0ofj5ix?svg=true)](https://ci.appveyor.com/project/nichtich/pod-pandoc)
[![Coverage Status](https://coveralls.io/repos/nichtich/Pod-Pandoc/badge.svg)](https://coveralls.io/r/nichtich/Pod-Pandoc)
[![Kwalitee Score](http://cpants.cpanauthors.org/dist/Pod-Pandoc.png)](http://cpants.cpanauthors.org/dist/Pod-Pandoc)
[![Code Climate Issue Count](https://codeclimate.com/github/nichtich/Pod-Pandoc/badges/issue_count.svg)](https://codeclimate.com/github/nichtich/Pod-Pandoc)
Expand Down Expand Up @@ -97,7 +98,7 @@ L<http://pod-pandoc.rtfd.io/en/latest/Pod-Pandoc.html>.
=head1 SEE ALSO
This module is basde on the wrapper module L<Pandoc> to execute pandoc from Perl
This module is based on the wrapper module L<Pandoc> to execute pandoc from Perl
and on the module L<Pandoc::Elements> for pandoc document processing.
This module makes obsolete several specialized C<Pod::Simple::...> modules such
Expand All @@ -113,6 +114,10 @@ L<Pod::HtmlTree>.
Jakob Voß E<lt>jakob.voss@gbv.deE<gt>
=head1 CONTRIBUTORS
Benct Philip Jonsson
=head1 COPYRIGHT AND LICENSE
Copyright 2017- Jakob Voß
Expand Down
7 changes: 6 additions & 1 deletion t/pod-simple-pandoc-parse-modules.t
@@ -1,9 +1,14 @@
use strict;
use Test::More;
use Pod::Simple::Pandoc;
use Pandoc;
use Test::Output;

my $modules;
plan skip_all => 'pandoc not available' unless pandoc;

my $modules = Pod::Simple::Pandoc->parse_dir('t/examples');
is_deeply [qw(t/examples/Foo.pm t/examples/Pandoc t/examples/Pandoc.pod)],
[sort keys %$modules], 'parse_dir';

stderr_is {
$modules = Pod::Simple::Pandoc->parse_modules('t/examples');
Expand Down

0 comments on commit 5a03c89

Please sign in to comment.