Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.
This repository was archived by the owner on May 18, 2025. It is now read-only.

use the sqitch.sh to improve speed of travis #9

@pyramation

Description

@pyramation

Trying to get travis to work with this

language: node_js
notifications:
  email: false
node_js:
  - node
services:
  - docker
env:
  global:
    - PGPORT=7777
    - PGDATABASE=testing-db
    - PGTEMPLATE_DATABASE=testing-template-db
    - PGHOST=localhost
    - PGPASSWORD=
    - PGUSER=postgres
    - TMPDIR=/tmp
  matrix:
    - PACKAGE=packages/db-testing
    - PACKAGE=packages/db-transform
    - PACKAGE=packages/db-utils
before_install:
  - mkdir -p $HOME/bin
  - wget https://raw.githubusercontent.com/launchql/launchql-docker/master/helpers/sqitch.sh && mv sqitch.sh $HOME/bin/sqitch && chmod +x $HOME/bin/sqitch
  - docker run -p 7777:5432 --name postgres -d postgres:10.3
  - sleep 3
  - while ! docker exec -it postgres pg_isready -U postgres -h 127.0.0.1; do echo "$(date) - waiting for database to start"; sleep 1; done
script:
  - yarn
  - yarn bootstrap
  - yarn build
  - cd $PACKAGE
  - yarn test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions