environment:
  matrix:
  - nodejs_version: 'Stable'
  - nodejs_version: '8'

services:
  - mongodb

init:
  git config --global core.autocrlf true

install:
  - ps: Install-Product node $env:nodejs_version
  - npm install

before_test:
  - SET PATH=C:\mongodb\bin;%PATH%
  - mongo test_lucid --eval "db.createUser({user:\"test\",pwd:\"test\",roles:[\"dbOwner\"]});"
  - node --version
  - npm --version

test_script:
  - npm run test:win

build: off
clone_depth: 1

matrix:
  fast_finish: true
