Skip to content

Commit

Permalink
Test Windows build with Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed May 17, 2016
1 parent 022119e commit ce9f17b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^appveyor\.yml$
^MANIFEST\.SKIP$
2 changes: 2 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use warnings;
use 5.008;
use ExtUtils::MakeMaker;

$ExtUtils::MakeMaker::Verbose = 1;

use Devel::CheckLib;
{
local @ARGV = @ARGV;
Expand Down
32 changes: 32 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
environment:
CMARK_VERSION: 0.25.2

install:
- perl -MConfig -e "print \"lib_ext: \", $Config{lib_ext}, \"\\n\""
- path C:\MinGW\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\System32;C:\Program Files\7-Zip;C:\Program Files (x86)\CMake\bin;C:\Program Files\AppVeyor\BuildAgent

# Install libcmark.
- if not exist C:\projects\sources mkdir C:\projects\sources
- cd C:\projects\sources
- appveyor DownloadFile https://github.com/jgm/cmark/archive/%CMARK_VERSION%.zip -FileName cmark.zip
- 7z x cmark.zip
- cd cmark-%CMARK_VERSION%
- mkdir build
- cd build
- cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\projects\cmark
- mingw32-make install

# Install Perl prereqs
- cd C:\projects\perl-commonmark
- ppm install dmake
- ppm install Devel-CheckLib

build_script:
- perl Makefile.PL INC=-IC:\projects\cmark\include LIBS="-LC:\projects\cmark\bin -lcmark"
- dmake

test_script:
- dmake test

clone_depth: 5

0 comments on commit ce9f17b

Please sign in to comment.