Hiya,

I have a project at work for which I'd like to get a continuous integration pipeline set up. As far as I can tell, the ideal CI scenario is:

  1. Spin up brand new VM (or use Local::Lib to sandbox perl)
  2. Install all prerequisites for module
  3. Build module
  4. Run unit, integration and end-to-end tests for project
  5. Package module + deploy to CPAN

The issue I have centres around prerequisites: as with all things, CPAN isn't perfect, and I need specific combinations of modules installed in a specific order (this one 0.2.5 or below, this other one 6.2 or above IF this third one has gone beyond 1.3) and some of them don't build at all on windows until I've messed around with some environment variables. Even in an ideal world, it would take 2 hours to compile all of them from CPAN.

In light of this, I currently have one VM which has the prerequisites installed, and if I need to update my module's prereqs, I have to log into that VM and ensure everything works properly. How do I avoid this sort of pain, and potentially scale out to multiple agents? Do I set up a local PPM server to cache successful builds, then set up my prereqs out of that? Do I attempt to fix the upstream modules I'm having trouble with, and suck up the 2 hours of compilation? Is it even desirable to ensure a build 'from scratch' works all the time?


In reply to Effectively handling prerequisites during continuous integration by ali0sha

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.