I am using this docker container to build exercism.io exercises with Travis. My .travis.yml
is below:
language:
- minimal
services:
- docker
install:
- docker pull jjmerelo/test-perl6
script: docker run -t --entrypoint="/bin/sh" -v $TRAVIS_BUILD_DIR:/test jjmerelo/test-perl6 -c "zef install JSON::Fast && prove -r --exec=perl6 perl6"
When running, Travis fails to update the p6c mirror and is unable to find JSON::Fast, thus causing my tests to fail. A snippet of the error is shown below, with the full build logged here.
===> Searching for: JSON::Fast
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
!!!> Failed to update p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updating p6c mirror: http://ecosystem-api.p6c.org/projects.json
!!!> Failed to update p6c mirror: http://ecosystem-api.p6c.org/projects.json
===> Updating p6c mirror: git://github.com/ugexe/Perl6-ecosystems.git
===> Updated p6c mirror: git://github.com/ugexe/Perl6-ecosystems.git
No candidates found matching identity: JSON::Fast
Is there something I'm missing in my .travis.yml
in order to get this working?
It should work if you try it again / zef update
. JSON::Fast
is actually in the cpan ecosystem, but the cpan ecosystem itself has been having issues the last couple of days.
The p6c ecosystem not updating is an unrelated issue (since JSON::Fast
is in the cpan ecosystem). That can be corrected by updating zef -- zef install https://github.com/ugexe/zef.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With