in reply to Bitbucket pipelines and perl

Thanks for the question! Bitbucket Pipelines PM (and old Perl hacker) here.

Bitbucket Pipelines runs your code in a Docker image, and there are official Perl Docker images available you can get started with. Here's a short example that you can drop straight into bitbucket-pipelines.yml in your repository:

pipelines:
  default:
    - step:
        image: perl:5.26
        script:
          - perl -v
          - cpan -T "MediaWiki::API"
          - perl -MMediaWiki::API -e 'my $mw = MediaWiki::API->new()'

I've run this myself in a demo pipeline here, and it works. Your code is automatically checked out by Pipelines, so you just need to edit the above to call your make commands or whatever build process you want to run.

Installing dependencies like this as part of your build process is not ideal because it slows down every build. Looking at my build, it took about 40s to install the MediaWiki module. There are two options for improving this:

Good luck - hopefully this is enough to get you started with Perl on Bitbucket Pipelines!

--
Matt Ryall <mryall@atlassian.com>

Replies are listed 'Best First'.
Re^2: Bitbucket pipelines and perl
by Skeeve (Parson) on Mar 28, 2018 at 06:03 UTC

    WOW

    That really great and very well explained.

    Thanks a thousand times. This will really help me a lot.

    Too bad I only can give this ++ one time.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e