Advertisement
Guest User

Untitled

a guest
Feb 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. image: node:9.3.0
  2. cache:
  3. paths:
  4. - node_modules/
  5. services:
  6. - postgres:latest
  7. variables:
  8. POSTGRES_DB: uptimer
  9. POSTGRES_USER: uptimer
  10. POSTGRES_PASSWORD: uptimer
  11. connect:
  12. image: postgres
  13. script:
  14. # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
  15. - export PGPASSWORD=$POSTGRES_PASSWORD
  16. - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -f ./table-setup.sql
  17. test_client:
  18. stage: test
  19. variables:
  20. PGUSER: $POSTGRES_USER
  21. PGHOST: postgres
  22. PGPASSWORD: $POSTGRES_PASSWORD
  23. PGDATABASE: $POSTGRES_DB
  24. FRONTENDURL: http://localhost:3001
  25. BACKENDURL: http://localhost:3000
  26. JWTSECRET: 0asdfasfsadfasdfasdfasdf
  27. script:
  28. - yarn install
  29. - yarn test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement