Skip to content

Commit

Permalink
Modify travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsoleslp committed Aug 20, 2020
1 parent 46d3637 commit 552f2e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ language: node_js
services:
- postgresql
before_script:
- psql -c "create user loguser with encrypted password 'password';" -U postgres
- psql -c "create database er_jest;create user loguser with encrypted password 'password';grant all privileges on database er_jest to loguser;" -U postgres
node_js:
- 12.16.1
2 changes: 1 addition & 1 deletion test/routes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let authenticatedSession = null;
let testSession = null;

beforeAll(() => {
execSync(`npx sequelize db:create --url ${dbName}`);
try{execSync(`npx sequelize db:create --url ${dbName}`);}catch(e){}
execSync(`npx sequelize db:migrate --url ${dbName}`);
execSync(`npx sequelize db:seed:all --url ${dbName}`);
});
Expand Down

0 comments on commit 552f2e6

Please sign in to comment.