BuildID: 2547
Status: OK
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 10.01.2023 @ 21:27
Time elapsed: 93 sec
---
SCM:
https://github.com/melezhik/sparrowci-sandbox.git
Git sha: 5913569
Git comment: Example of conditional task. release!
image:
- melezhik/sparrow:debian
secrets:
- FEZ_TOKEN
tasks:
-
name: test
default: true
followup:
-
name: release
language: Bash
code: |
set -e
env|grep SCM
cd source
zef test .
-
name: release
if:
language: Raku
code: |
update_state %( status => 'skip' )
unless %*ENV<SCM_COMMIT_MESSAGE> ~~ /'release!'/;
language: Bash
code: |
set -e
zef install --/test https://github.com/tony-o/raku-fez.git
cat << HERE > ~/.fez-config.json
{"groups":[],"un":"melezhik","key":"$FEZ_TOKEN"}
HERE
cd source/
zef install --/test fez
tom --clean
fez upload --unattended
[35m21:26:33[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
[35m21:26:37[0m :: [repository] - installing pack-unpack, version 0.000001
[1;36m[task run: task.bash - unpack source archive][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] file=$(config file)
[4] dir=$(config dir)
[5]
[6] echo "tar -xzf $file "
[7]
[8] tar -xzf $file
[9]
[10] if test $dir; then
[11] ls -l $dir
[12] fi
[13]
[14]
[1;36m[task stdout][0m
[35m21:26:39[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.bash - tasks/test][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] env|grep SCM
[3] cd source
[4] zef test .
[5]
[1;36m[task stdout][0m
[35m21:26:40[0m :: SCM_URL=https://github.com/melezhik/sparrowci-sandbox.git
[35m21:26:40[0m :: SCM_SHA=5913569
[35m21:26:40[0m :: SCM_COMMIT_MESSAGE=Example of conditional task. release!
[35m21:26:41[0m :: ===> Testing: SparrowCI-SandBox:ver<0.0.6>:auth<zef:melezhik>
[35m21:26:41[0m :: ===> Testing [OK] for SparrowCI-SandBox:ver<0.0.6>:auth<zef:melezhik>
[35m21:26:51[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.bash - tasks/release][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] zef install --/test https://github.com/tony-o/raku-fez.git
[3]
[4] cat << HERE > ~/.fez-config.json
[5] {"groups":[],"un":"melezhik","key":"$FEZ_TOKEN"}
[6] HERE
[7]
[8] cd source/
[9] zef install --/test fez
[10]
[11] tom --clean
[12] fez upload --unattended
[13]
[1;36m[task stdout][0m
[35m21:26:58[0m :: ===> Installing: fez:ver<39>:auth<zef:tony-o>:api<0>
[35m21:27:08[0m ::
[35m21:27:08[0m :: 1 bin/ script [fez] installed to:
[35m21:27:08[0m :: /home/worker/.raku/bin
[35m21:27:10[0m :: No reason to proceed. Use --force-install to continue anyway
[35m21:27:11[0m :: cleaning /var/.sparrowdo/env/test/.sparrowdo/source/.tom/.cache ...
[35m21:27:12[0m :: >>= Looking in "sdist/ymKLhatN.tar.gz" for META6.json
[35m21:27:14[0m :: >>= meta<provides> looks OK
[35m21:27:14[0m :: >>= meta<resources> looks OK
[35m21:27:14[0m :: >>= SparrowCI-SandBox:ver<0.0.6>:auth<zef:melezhik> looks OK
[35m21:27:14[0m :: >>= Hey! You did it! Your dist will be indexed shortly.
[1;36m[task stderr][0m
[35m21:27:14[0m :: All candidates are currently installed