### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: sparrow.yaml
### ----------------------------------------------------
tasks:
  -
    language: Bash
    name: zef_test
    default: true
    code: |
      set -e
      sudo apk add --no-cache sqlite-libs sqlite-dev
      export RED_DATABASE="Pg host=localhost port=5432 user=testuser password=testpass dbname=redtest"
      cd source/
      raku --version
      zef install . --deps-only --test-depends --build-depends --/test .
      zef test . --verbose
    depends:
      -
        name: install_pg_server 
  -
    name: install_pg_server
    plugin: sparkyci-service-postgresql
    config:
      db_name: redtest
      db_user: testuser
      db_pass: testpass


