SparrowCI-SandBox

SparrowCI::Sandbox

sparrowci-sandbox

The only purpose of this module is to demonstrate usage of SparrowCI pipeline in Raku module automation.

sparrow.yaml

This pipeline runs zef test and then if a commit message contains release! string uploads a module via fez upload.

Pipeline requires fez token set as secret in user's account in SparrowCI.

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
      cat << HERE > ~/.fez-config.json
       {"groups":[],"un":"melezhik","key":"$FEZ_TOKEN"}
      HERE

      cd source/
      zef install --/test fez

      tom --clean
      fez upload --unattended

Author

Alexey Melezhik

SparrowCI-SandBox v0.0.7

SparrowCI::Sandbox

Authors

  • Alexey Melezhik

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • SparrowCI::Sandbox

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.