Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created October 22, 2018 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/fb18003ca2b5e47337d8a6926f706ba0 to your computer and use it in GitHub Desktop.
Save AlexDaniel/fb18003ca2b5e47337d8a6926f706ba0 to your computer and use it in GitHub Desktop.
Whateverable Hello World
#!/usr/bin/env perl6
use Whateverable;
use Whateverable::Builds;
use Whateverable::Config;
use Whateverable::Running;
ensure-config ‘./config-default.json’;
pull-cloned-repos; # pull rakudo and other stuff
my $quick-test = ‘/tmp/quick-test.p6’;
spurt $quick-test, ‘say 42; say $*PERL.compiler.version’;
#| Returns full commit sha
sub ensure-build($revision) {
my $full = to-full-commit $revision;
die “No build for $revision” unless build-exists $full;
return $full
}
dd run-snippet(ensure-build(‘HEAD’), $quick-test);
dd run-snippet(ensure-build(‘2018.06’), $quick-test);
dd run-snippet(ensure-build(‘00cb3315c’), $quick-test);
{
"repo-origin-rakudo" : "https://github.com/rakudo/rakudo.git",
"repo-current-rakudo-moar" : "./data/rakudo-moar",
"repo-origin-moarvm" : "https://github.com/MoarVM/MoarVM.git",
"repo-current-moarvm" : "./data/moarvm",
"archives-location" : "./data/builds",
"builds-location" : "/tmp/whateverable/",
"moarvm" : "./data/moarvm",
"rakudo-repo" : "https://github.com/rakudo/rakudo",
"mothership": "https://whateverable.6lang.org",
"github": {
"login": "",
"access_token": ""
},
"bisectable": {
"commit-link" : "https://github.com/rakudo/rakudo/commit",
"build-lock" : "./lock",
"trim-chars" : 2000
},
"default-stdin": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment