Created
April 20, 2019 22:38
-
-
Save victorsteven/5ea0c8769aeabf01b3a08db3a2397d4f to your computer and use it in GitHub Desktop.
travis file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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