Home Quick start All builds News Donations
More
Log In
Light Theme Docs
Workers

SparrowCI Report - gh-melezhik-protocol-postgres | [image: NA]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2475
Status: FAIL
Image:
Worker status: OK
---
Date: 06.01.2023 @ 02:28
Time elapsed: 20 sec
---
SCM: https://github.com/melezhik/protocol-postgres.git
Git sha: 1025a81
Git comment: ci file
tasks:
  -
    name: int-test
    default: true
    langauge: Raku
    depends:
    -
      name: install
    -
      name: install-pg
    code: |

      use v6.d;
      use Protocol::Postgres;

      my $socket = await IO::Socket::Async.connect("localhost");
      my $client = Protocol::Postgres::Client.new;
      $socket.Supply(:bin).act({ $client.incoming-data($^data) });
      $client.outbound-data.act({ $socket.write($^data) });

      await $client.startup($user, $database, $password);

      my $resultset = await $client.query('SELECT * FROM bar WHERE id = $1', 42);
      react {
        whenever $resultset.hash-rows -> (:$name, :$description) {
          say "$name is $description";
        }
      }
  -
    name: install
    language: Bash
    code: |
      set -e
      cd source/
      zef install . --/test
  -
    name: install-pg
    plugin: sparkyci-service-postgresql
    followup:
    -
      name: create-table
    config:
      db_name: testdb
      db_user: testuser
      db_pass: testpass
  -
    name: create-table
    language: Bash
    code: |
      set -e
      export PGPASSWORD=testpass
      psql -d testdb -U testuser -c "create table bar(name text, description text, id int)" -h localhost      
      psql -d testdb -U testuser -c "insert into bar(name, description, id) values('Raku','Programming Language', 42)" -h localhost      
    
Couldn't parse YAML: Problem with indentatiton in map at 11:4.