Skip to content

Instantly share code, notes, and snippets.

@victorsteven
Created April 20, 2019 22:38
Show Gist options
  • Select an option

  • Save victorsteven/5ea0c8769aeabf01b3a08db3a2397d4f to your computer and use it in GitHub Desktop.

Select an option

Save victorsteven/5ea0c8769aeabf01b3a08db3a2397d4f to your computer and use it in GitHub Desktop.
travis file
language: node_js
node_js:
- "stable"
cache:
directories:
- "node_modules"
install:
- npm install
services:
- postgresql
env:
global:
- NODE_ENV=test
before_script:
- psql -c 'create database book_test;' -U postgres
- psql -c "CREATE USER steven WITH PASSWORD null;" -U postgres
- npm run build
- npm install -g sequelize-cli
- sequelize db:migrate
script:
- npm test
after_success:
- npm run coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment