sudo: false
language: node_js
#cache:
#  directories:
#    - node_modules

notifications:
  email: false

node_js:
  - "6"
  - "8"

env:
  global:
    - CXX=g++-4.8
    - TWITTER_BEARER_TOKEN=123456789

matrix:
  allow_failures:
  - node_js: "6"

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
  code_climate:
      repo_token: ${CODECLIMATE_REPO_TOKEN}

# before_script:
#   - npm install --global snyk
#   - snyk auth ${SNYK_TOKEN}

script:
  - npm run build
  # - npm run security_check
  - npm run lint
  - npm run test

sudo: false
language: node_js
#cache:
#  directories:
#    - node_modules

notifications:
  email: false

services:
  - redis-server

node_js:
  - "8"
  - "9"

env:
  global:
    - CXX=g++-4.8
    - TWITTER_BEARER_TOKEN=123456789

matrix:
  allow_failures:
  - node_js: "9"

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
  code_climate:
      repo_token: ${CODECLIMATE_REPO_TOKEN}
  rethinkdb: '2.3.6'

# before_script:
#   - npm install --global snyk
#   - snyk auth ${SNYK_TOKEN}

script:
  - npm run build
  # - npm run security_check
  - npm run test
  - npm run lint

Add Redis and RethinkDB required services, move build to Node.js versions 8 and 9 rather than 6 and 8. Move linting step to after testing step so it's easier to see test results.
Add Redis and RethinkDB required services, move build to Node.js
versions 8 and 9 rather than 6 and 8.
Move linting step to after testing step so it's easier to see
test results.
