Day 1: SparrowCI pipelines for everything

New year is a fun time when the whole family gets together by a table and eat holiday dinner.

Let me introduce some fun and young member of a Raku family – a guy named SparrowCI – super flexible and fun to use CI service.

To find SparrowCI lad – go to https://ci.sparrowhub.io web site and get a login using your GitHub credentials:

login

Pipelines of fun

SparrowCI provides you with some DSL to built a CI for your Raku modules.

For none devops people CI means “continuous integration” – a process allowing to test your code in some centralized service and share results with others.

Let’s create some new year gift module and then build it:

mkdir SparrowBird
cd SparrowBird
git init 
cat << HERE > META6.json
{
  "authors" : [
    "Alexey Melezhik"
  ],
  "description" : "Sparrow::Bird",
  "license" : "Artistic-2.0",
  "name" : "Sparrow Bird",
  "provides" : {
    "Sparrow::Bird" : "lib/Sparrow/Bird.rakumod"
  },
  "version" : "0.0.1"
}
HERE

mkdir -p lib/Sparrow

cat << HERE > lib/Sparrow/Bird.rakumod
unit module Sparrow::Bird;
HERE

The SparrowCI guy is wrapping the gift into a new year paper:

cat << HERE > sparrow.yaml
tasks:
  -
    name: build-sparrow
    default: true
    language: Bash
    code: |
      set -e
      cd source/
      zef install .
HERE

And finally let’s commit everything (aka send to Santa):

git add .
git commit -a -m "my sparrow bird module initial commit"

git remote add origin git@github.com:melezhik/sparrow-bird.git
git branch -M main
git push -u origin main

Once the module in the GitHub land (aka Lapland), let’s register it in SparrowCI:

Go to “my repos”, then a repository you want to build – https://github.com/melezhik/sparrow-bird :

add repo

The Gift packaged

Now it’s time to see the very first new gift wrapped in a holiday paper, please allow SparrowCI a minute do his job, as he is being very busy wrapping up other holiday gifts.

Finally, we will see something like this:

report

That is it?

Well, this is a small new year story not pretending to be a boring technical stuff. But as the title says – SparrowCI pipelines for everything, not just for building Raku modules …

Thus, check out https://ci.sparrowhub.io to see all fun SparrowCI features and happy holidays!

2 thoughts on “Day 1: SparrowCI pipelines for everything

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: