Newer
Older
stages:
- test
services:
- postgres
variables:
NODE_ENV: 'test'
before_script:
- npm install --global mocha gulp
- npm install
- su postgres -c "createuser -drS root" #create posgresql user with permission to create databases and roles
run_tests:
stage: test
script:
- mv config_test.js.example config_test.js
tags:
- node
cache:
paths:
- node_modules/