Automated Testing on Windows with AppVeyor

You can test Perl on Windows with continuous integration through AppVeyor. I previously showed an example of with Travis CI but that was limited to Linux. You can easily set up an account through GitHub (or other means), select projects to test, and let it do its work.

Here’s my standard AppVeyor configuration in .appveyor.yml (although you can also use appveyor.yml with no leading dot). I install (and cache for future runs) Strawberry Perl through chocolatey.

Notice the Strawberry Perl provides gmake:

skip_tags: true
cache:
  - C:\strawberry
install:
  - if not exist "C:\strawberry" cinst strawberryperl
  - set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
  - cd C:\projects\%APPVEYOR_PROJECT_NAME%
  - cpanm --installdeps .
build_script:
  - perl Makefile.PL
  - gmake test

This is likely to change over the years but you can peek at any of my GitHub projects to find my current AppVeyor configs.