/modsmoke

OnDemand CPAN Module SmokeTester Using CI

Primary LanguagePerl

modsmoke

Use AppVeyor and Travis CI environments to install a list of cpan modules under various perls, and automatically send the results to cpantesters.

The ModuleList contains all the arguments that will be sent to cpanm for installation.

issues appveyor build status travis build status

TODO

Eventually, I'll want to figure out a way to keep track of which versions of a given module have been tested under a given perl, so that I don't keep re-doing the same tests... but for now, I'm just going to work on proof of concept.

Development Notes

Within about 10 minutes, the new reports should show up in http://metabase.cpantesters.org/tail/log.txt

.cpanreporter directory location

By running cpanm-reporter without a config, I got error messages

  • travis-ci: file '/home/travis/.cpanreporter/config.ini' not found
  • appveyor: file 'C:\Users\appveyor.cpanreporter\config.ini' not found

So now I know where those go.

Encrypting .cpanreporter configuration

https://www.appveyor.com/docs/how-to/secure-files/

  • Grabbed the appveyor-tools via powershell
  • %userprofile%\appveyor-tools\secure-file -encrypt metabase_id.json -secret MYSECRET1234 (except use the real password)
  • worked

https://docs.travis-ci.com/user/encrypting-files

  • so, Travis requires Ruby to encrypt...

Skipping builds

Both AppVeyor and Travis-CI will obey [skip ci] or [ci skip]. AppVeyor also allows [skip appveyor], but I cannot find an Travis-CI-specific equivalent documented.