machine:
  node:
    version: 6.10.0
  environment:
    ETA_AUTH_PROVIDER: local
    ETA_DB_PROVIDER: postgres
    ETA_DB_HOST: localhost
    ETA_DB_PORT: 5432
    ETA_DB_USERNAME: ubuntu
    ETA_DB_DATABASE: circle_test
checkout:
  post:
    - cp config/auth.sample.json config/auth.json
    - cp config/aws.sample.json config/aws.json
    - cp config/db.sample.json config/db.json
    - cp config/dev.sample.json config/dev.json
    - cp config/http.sample.json config/http.json
    - cp config/https.sample.json config/https.json
    - cp config/logger.sample.json config/logger.json
compile:
  override:
    - npm run generate
    - npm run compile
test:
  override:
    - npm run test:
        environment:
          MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml

machine:
  node:
    version: 8.2.0
  environment:
    ETA_AUTH_PROVIDER: local
    ETA_DB_PROVIDER: postgres
    ETA_DB_HOST: localhost
    ETA_DB_PORT: 5432
    ETA_DB_USERNAME: ubuntu
    ETA_DB_DATABASE: circle_test
checkout:
  post:
    - cp config/auth.sample.json config/auth.json
    - cp config/aws.sample.json config/aws.json
    - cp config/db.sample.json config/db.json
    - cp config/dev.sample.json config/dev.json
    - cp config/http.sample.json config/http.json
    - cp config/https.sample.json config/https.json
    - cp config/logger.sample.json config/logger.json
compile:
  override:
    - npm run generate
    - npm run compile
test:
  override:
    - npm run test:
        environment:
          MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml

Set CircleCI Node.JS version to 8.2.0
Set CircleCI Node.JS version to 8.2.0
