Skip to content
Snippets Groups Projects
.gitlab-ci.yml 457 B
Newer Older
Luiz Gonçalves's avatar
Luiz Gonçalves committed
stages:
  - test

services:
  - mongo:latest

variables:
  MONGO_URI: 'mongodb://mongo/app_name'
  NODE_ENV: 'test'

Luiz Gonçalves's avatar
Luiz Gonçalves committed
before_script:
  - npm install --global gulp gulp-cli babel babel-cli babel-core babel-register mocha gulp-mocha gulp-eslint
Luiz Gonçalves's avatar
Luiz Gonçalves committed
  - npm install

run_tests:
  stage: test
  script:
    - ping -W1 -c1 mongo
    - mv config.json.example config.json
Vytor Calixto's avatar
Vytor Calixto committed
    - sed -i -e 's/false/true/g' config.json
    - gulp build
Luiz Gonçalves's avatar
Luiz Gonçalves committed
  tags:
    - node