Project: gh-melezhik-r3tool-openbugs

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-openbugs
  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: {}

Job

#!raku

use Sparky::JobApi;

%*ENV<SP6_DUMP_TASK_CODE> = False;

bash "raku -V > rakuenv.txt";

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

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

bash "sudo apk add tree coreutils";

directory "scm";

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

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

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

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