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 .deb
s 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 .deb
s makes it quite easy to test if a module will work not just with bleeding Rakudo but with versions users might actually have.
Categories: Uncategorized
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 )))
You can also use a Rakudo perl container designed specifically for testing https://hub.docker.com/r/jjmerelo/test-perl6/
Hi! Sounds good, will try to take it for a spin. Is it faster then Travis/rakudo-as-system-package bootstrap ?
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.
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
Thanks!
Could you use caching to skip installing the second time? Btw, is language set to perl6?
yes i have tried it and it worked
Is it faster then Travis/rakudo-as-system-package bootstrap ?
It can’t be faster then a system package because it has to fetch the package from github every time. Hi !
Hi ! You can also use a Rakudo perl container designed specifically for testing <a href="https://hub.
You can also use a Rakudo perl container designed specifically for testing <a href="https://hub. Hi !
Hi,
rakudo-pkg packager here. I saw this post by coincidence.
Just a heads-up that I build Ubuntu 14.04 packages specially for travis. New packages also have zef preinstalled for root: https://github.com/nxadm/rakudo-pkg/releases/tag/v2017.10-02
Feel free to raise tickets if something else is needed.
Regards;
C.