Hy, I'm using Jenkins <https://jenkins-ci.org/> in combination with GitLab CE (Broken since version 8, but a fix is currently in development). Tests are done by prove in combination with Devel::Cover as "Execute Shell" build task: # prepare environment mkdir -p output export MOJO_MODE=testing export PERL5LIB=deps/lib/perl5:lib cover -delete
# execute tests and create coverage database DEVEL_COVER_OPTIONS=+inc,deps,+ignore,Schema/Result HARNESS_PERL_SWITCHES=-MDevel::Cover deps/bin/prove --verbose --archive output t/ # create cover reports cover && cover -report clover To check test results Clover plugin <http://wiki.jenkins-ci.org/display/JENKINS/Clover+Plugin> and TAP Plugin <http://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin> are used. If a test fails the build fails. Autodeploy can be done with an additional build step or a downstream deploy job which is only executed if the build succeeds. I use this setup to validate merge requests and also for the final deployment to staging and production systems. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
