Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: node
- stages:
- - test
- test_project:
- stage: test
- services:
- - postgres:9.6
- variables:
- POSTGRES_DB: test
- POSTGRES_USER: user
- POSTGRES_PASSWORD: ""
- # Configure app
- DATABASE_CONNECTION_STRING: "postgres://user@postgres/test"
- script:
- - echo "====== Install dependencied ======"
- - npm i
- - echo "====== Migrate database ======"
- - npm run migrate
- - echo "====== Run test ======"
- - npm test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement