version: 2
jobs:
  build:
    docker:
      - image: circleci/node:8.4.0
        environment:
          DATABASE_URL_TEST: postgres://test_user@localhost:5432/test_db
          IS_CIRCLE_CI: true
      - image: circleci/postgres:latest
        environment:
          POSTGRES_USER: test_user
          POSTGRES_DB: test_db
          POSTGRES_PASSWORD: ""
      - image: selenium/standalone-chrome:3.5.2

    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
          - fervor-dependencies-{{ arch }}-{{ checksum "package.json" }}
          # fallback to using the latest cache if no exact match is found
          - fervor-dependencies-{{ arch }}

      - run: CFLAGS=-std=gnu11 yarn install

      - save_cache:
          paths:
            - node_modules
          key: fervor-dependencies-{{ arch }}-{{ checksum "package.json" }}

      - run: yarn build
      - run: yarn test
      - run: yarn run integration

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:8.11.0
        environment:
          DATABASE_URL_TEST: postgres://test_user@localhost:5432/test_db
          IS_CIRCLE_CI: true
      - image: circleci/postgres:latest
        environment:
          POSTGRES_USER: test_user
          POSTGRES_DB: test_db
          POSTGRES_PASSWORD: ""
      - image: selenium/standalone-chrome:3.5.2

    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
          - fervor-dependencies-{{ arch }}-{{ checksum "package.json" }}
          # fallback to using the latest cache if no exact match is found
          - fervor-dependencies-{{ arch }}

      - run: CFLAGS=-std=gnu11 yarn install

      - save_cache:
          paths:
            - node_modules
          key: fervor-dependencies-{{ arch }}-{{ checksum "package.json" }}

      - run: yarn build
      - run: yarn test
      - run: yarn run integration

Update to node@8.11.0 in circle-ci
Update to node@8.11.0 in circle-ci
