-
Vytor Calixto authoredVytor Calixto authored
.gitlab-ci.yml 556 B
stages:
- test
services:
- mongo:latest
variables:
MONGO_URI: 'mongodb://mongo/app_name'
NODE_ENV: 'test'
before_script:
- npm install --global gulp gulp-cli babel babel-cli babel-core babel-register mocha gulp-mocha gulp-eslint
- npm install
run_tests:
stage: test
script:
- ping -W1 -c1 mongo
- mv config.json.example config.json
- sed -i -e 's/false/true/g' config.json
- sed -i -e 's/simcaq_dev/simcaq_dev3/g' config.json
- gulp build
- gulp test
tags:
- node
cache:
paths:
- node_modules/