fac-15 / SSKM

Week 8

Home Page:https://sskm-tech.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘·β€β™‚οΈ Travmonster

astroash opened this issue Β· comments

commented

SSKM/.travis.yml

Lines 14 to 16 in 55dc4d6

before_script:
- psql -c "CREATE DATABASE techdatabase;" -U postgres
- psql -c "CREATE DATABASE techdatabaseTest;" -U postgres

You should only need to create one database for your tests

SSKM/.travis.yml

Lines 17 to 19 in 55dc4d6

- psql -c "CREATE USER admin WITH PASSWORD 'password';" -U postgres
- psql -c "ALTER DATABASE techdatabase OWNER TO admin;" -U postgres
- psql -c "ALTER DATABASE techdatabaseTest OWNER to admin;" -U postgres

This isn't needed. Travis creates a database with the username postgres and no password. Checkout what they say here in the docs:
https://docs.travis-ci.com/user/database-setup/#postgresql

Now that the db is created you can add that env var to travs and you should be good to go