Skip to content

Databases + Travis #32

@matthewdking

Description

@matthewdking

So I have had problems with this in the past and struggled to find much in terms of documentation. There is a bit here.

I think essentially it comes down to adding this to your travis.yml

services:
  - postgresql
before_script:
  - psql -c 'create database nameOfDB;' -U postgres

Maybe writing another script to set env and build db? I have this script in one of my projects

"pretest": "ENV=test npm run db-build",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions