Project: gh-melezhik-Sparrowdo

Build now

Configuration

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

Job

#!raku

use Sparky::JobApi;

%*ENV<SP6_DUMP_TASK_CODE> = False;

say tags().perl;

bash "raku -V > rakuenv.txt";

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

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

directory "scm";

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

bash "git show --oneline -s > gitinfo.txt", %(
  cwd => "{$*CWD}/scm"
);

Sparky::JobApi.new(:mine).put-file("scm/gitinfo.txt","gitinfo.txt");

bash "zef install . --force-install", %(
  cwd => "{$*CWD}/scm"
);

zef "Tomty";

bash q:to /BASH/, %( description => "tests", cwd => "{$*CWD}/scm" );
  export SP6_LOG_NO_TIMESTAMPS=1
  tomty --profile ci --show-failed --color --dump-task
BASH