Project: gh-melezhik-r3tool

Build now

Configuration

sparrowdo:
  no_sudo: true
  no_index_update: false
  bootstrap: false
  format: default
  repo: https://sparrowhub.io/repo
  image: melezhik/sparrow:alpine_arm_head
  docker: gh-melezhik-r3tool
  tags: >
      SCM_URL=https://github.com/melezhik/r3tool.git,
      SCM_SHA=HEAD,
      SCM_BRANCH=master
disabled: false
keep_builds: 100
allow_manual_run: true
scm:
  url: https://github.com/melezhik/r3tool.git
  branch: HEAD
plugins:
  Sparky::Plugin::Docker: {}
vars:
  -
    name: RAKUAST
    type: checkbox
    default: false

Job

#!raku

use Sparky::JobApi;

%*ENV<SP6_DUMP_TASK_CODE> = False;

bash "sudo apk add tree coreutils";

bash "raku -V > rakuenv.txt";

Sparky::JobApi.new(:mine).put-file("rakuenv.txt","rakuenv.txt");

bash "raku -v", %( description => "raku -v" );

directory "scm";

say "current commit is: {tags()<SCM_SHA>}";

git-scm tags()<SCM_URL>, %(
  to => "scm",
  branch => tags<SCM_BRANCH>
);

say "=========";
say tags().perl;
say "=========";

my $command = q:to /CODE/;
  tomty \
  --only=closed \
  --skip=example,experimental,flap,rejected,noroot,deprecated,flickering,clarify,flaky,slow,notabug \
  --show-failed \
  --color \
  --dump-task
CODE

my %env = %(  SP6_DUMP_TASK_CODE => "" );
%env<RAKUDO_RAKUAST> = 1 if tags()<RAKUAST>;
say %env.perl;

bash $command, %(
  cwd => "{$*CWD}/scm", 
  description => "r3tests", 
  envvars =>  %env,
);