sudo: false
dist: trusty
language: node_js
node_js:
  - "8"

addons:
apt:
  sources:
    - google-chrome
  packages:
    - google-chrome-stable

before_install:
  - npm install npm@5 -g
  - npm install -g @angular/cli@latest
  - npm install -g karma
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

install:
  - npm install

script: npm run server:test
sudo: false
dist: trusty
language: node_js
node_js:
  - "8"

addons:
apt:
  sources:
    - google-chrome
  packages:
    - google-chrome-stable

env:

DOCKER_COMPOSE_VERSION :1.12.0


before_install:
  - npm install npm@5 -g
  - npm install -g @angular/cli@latest
  - npm install -g karma
  - npm install -g mocha
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sudo apt-get update
  - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
  - docker-compose build && dc up -d mongodb node
  - /bin/bash -

install:
  - npm install

script: npm run server:test
Add docker-compose and mocha to setup env test
Add docker-compose and mocha to setup env test
