Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databases + Travis #32

Open
matthewdking opened this issue Apr 6, 2018 · 0 comments
Open

Databases + Travis #32

matthewdking opened this issue Apr 6, 2018 · 0 comments

Comments

@matthewdking
Copy link
Contributor

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",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant