message: Test node 6 and 8 in circle ci
diff: version: 2
  jobs:
  - build:
  + node6:
  docker:
  - image: circleci/node:6.10
  environment:
  - PGHOST=localhost
  - PGUSER=postgres
  - - image: mdillon/postgis
  + - image: circleci/postgres:9.6-alpine-postgis
  steps:
  + - run:
  + name: Wait for db
  + command: dockerize -wait tcp://localhost:5432 -timeout 2m
  - checkout
  - run: sudo apt-get update
  - run: sudo apt install postgresql-client
  + - run: POSTGRES_USER=postgres npm run setup_test_db
  + - restore_cache:
  + keys:
  + - npm-deps-{{ checksum "package.json" }}
  + - run: npm install
  + - save_cache:
  + key: npm-deps-{{ checksum "package.json" }}
  + paths:
  + - node_modules/
  + - run: npm run test-ci
  + - run: npm run coverage
  +
  +
  + node8:
  + docker:
  + - image: circleci/node:8.8
  + environment:
  + - PGHOST=localhost
  + - PGUSER=postgres
  + - image: circleci/postgres:9.6-alpine-postgis
  +
  + steps:
  - run:
  name: Wait for db
  - command: dockerize -wait tcp://localhost:5432 -timeout 1m
  + command: dockerize -wait tcp://localhost:5432 -timeout 2m
  + - checkout
  + - run: sudo apt-get update
  + - run: sudo apt install postgresql-client
  - run: POSTGRES_USER=postgres npm run setup_test_db
  + - restore_cache:
  + keys:
  + - npm-deps-{{ checksum "package.json" }}
  - run: npm install
  - - run: npm test
  + - save_cache:
  + key: npm-deps-{{ checksum "package.json" }}
  + paths:
  + - node_modules/
  + - run: npm run test-ci
  + - run: npm run coverage
  +
  +workflows:
  + version: 2
  + node6_and_node8:
  + jobs:
  + - node6
  + - node8
  +
  +
  \ No newline at end of file
  