### ----------------------------------------------------
### -- LibXML
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: sparrow.yaml
### ----------------------------------------------------
image:
  - melezhik/sparrow:debian_arm
  - melezhik/sparrow:ubuntu_arm
  # - melezhik/sparrow:archlinux
tasks:
  -
    name: main
    default: true
    language: Bash
    code: |
          raku --version
          zef --version
          
          cd source/
          
          zef install . --deps-only --test-depends --build-depends --/test
          zef build .
          zef test . --verbose
          
    depends:
      -
        name: install-deps
  -
    name: install-deps
    language: Bash
    code: |
      if test $os = "debian"; then
        sudo apt-get update
        sudo apt-get install -y libxml2-dev libxslt-dev
      elif test $os = "ubuntu"; then
        sudo apt-get update
        sudo apt-get install -y libxml2-dev libxslt-dev
      elif test $os = "arch"; then
        sudo pacman -S --needed --noconfirm -q libxml2 libxslt
      fi  


