Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: node:9.3.0
- cache:
- paths:
- - node_modules/
- services:
- - postgres:latest
- variables:
- POSTGRES_DB: uptimer
- POSTGRES_USER: uptimer
- POSTGRES_PASSWORD: uptimer
- connect:
- image: postgres
- script:
- # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- - export PGPASSWORD=$POSTGRES_PASSWORD
- - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -f ./table-setup.sql
- test_client:
- stage: test
- variables:
- PGUSER: $POSTGRES_USER
- PGHOST: postgres
- PGPASSWORD: $POSTGRES_PASSWORD
- PGDATABASE: $POSTGRES_DB
- FRONTENDURL: http://localhost:3001
- BACKENDURL: http://localhost:3000
- JWTSECRET: 0asdfasfsadfasdfasdfasdf
- script:
- - yarn install
- - yarn test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement