Home > Uncategorized > Speeding up Travis

Speeding up Travis

After some wiggling I managed to convince travis to use ubuntu packages to trim off about 4 minutes of a test. Sadly the .debs don’t come with build in zef, what would be another 40 seconds.

As follows a working .travis.yml.

sudo: required
before_install:
    - wget https://github.com/nxadm/rakudo-pkg/releases/download/2017.03_02/perl6-rakudo-moarvm-ubuntu16.04_20170300-02_amd64.deb
    - sudo dpkg --install perl6-rakudo-moarvm-ubuntu16.04_20170300-02_amd64.deb
    - sudo /opt/rakudo/bin/install_zef_as_root.sh
    - export PATH=/opt/rakudo/bin:$PATH
    - sudo chown -R travis.travis /home/travis/.zef/
install:
    - zef --debug install .
script:
- zef list --installed

Using a meta package in conjuction with .debs makes it quite easy to test if a module will work not just with bleeding Rakudo but with versions users might actually have.

Advertisements
Categories: Uncategorized
  1. April 15, 2017 at 12:31

    Hi ! Actually I act the same way – https://github.com/melezhik/sparrowdo/blob/master/.travis.yml as default Travis Perl6 installation is way too long , wanted to shared this in post but you outpaced me )))

  2. April 16, 2017 at 12:24

    You can also use a Rakudo perl container designed specifically for testing https://hub.docker.com/r/jjmerelo/test-perl6/

    • April 17, 2017 at 19:21

      Hi! Sounds good, will try to take it for a spin. Is it faster then Travis/rakudo-as-system-package bootstrap ?

      • April 17, 2017 at 19:55

        It can’t be faster then a system package because it has to fetch the package from github every time. A system package may be cached via a proxy or some snapshot trickery.

      • April 17, 2017 at 19:57

        Your best bet is to just try it. It’s a very small image based in the lightweight Alpine distribution. You can check it out here, for instance https://travis-ci.org/JJ/p6-math-constants

      • April 18, 2017 at 06:39

        Thanks!

  3. April 18, 2017 at 20:53

    Could you use caching to skip installing the second time? Btw, is language set to perl6?

  4. alberttrotter
    April 25, 2017 at 17:17

    yes i have tried it and it worked

  5. Mary P
    May 2, 2017 at 06:48

    Is it faster then Travis/rakudo-as-system-package bootstrap ?

  6. May 13, 2017 at 16:03

    It can’t be faster then a system package because it has to fetch the package from github every time. Hi !

  7. July 22, 2017 at 14:50

    Hi ! You can also use a Rakudo perl container designed specifically for testing <a href="https://hub.

  1. April 18, 2017 at 01:50

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: