Help language development. Donate to The Perl Foundation

Sparrowdo zef:melezhik last updated on 2023-01-19

sparrow.yaml
image:
  - melezhik/sparrow:alpine
  - melezhik/sparrow:archlinux
  - melezhik/sparrow:debian

secrets:
  - FEZ_TOKEN

tasks:
  -
    name: test
    default: true
    language: Bash
    code: |
      set -e
      set -x
      cd source 
      tomty --all --show-failed --color 
    depends:
      -
        name: install-deps
    followup:
      -
        name: release

  -
    name: release
    if:
      language: Raku
      code: |
        if %*ENV<SCM_COMMIT_MESSAGE> ~~ /'release!'/ and os() eq "debian" {
          say "pass to release";
        } else {
          update_state %( status => 'skip' )
        }
    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/

      tom --clean
      fez upload --unattended
      
  -
    name: install-deps
    language: Bash
    code: |
      set -e
      cd source
      zef install . --/test