language: ruby
rvm:
  - 2.5.0
addons:
  postgresql: '9.6'
  chrome: stable
cache:
  bundler: true
  directories:
    - node_modules
before_install:
  - nvm install 8.0.0
  - npm install -g yarn
before_script:
  # CodeClimate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  # Setup environment
  - yarn install
  - bundle exec rake db:create
  - bundle exec rake db:schema:load
script:
#  - yarn eslint
#  - bundle exec scss-lint app/assets/stylesheets/
  - bundle exec rubocop
  - bundle exec rspec
  - bundle exec brakeman
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

language: ruby
rvm:
  - 2.5.0
addons:
  postgresql: '9.6'
  chrome: stable
cache:
  bundler: true
  directories:
    - node_modules
before_install:
  - nvm install 10.0.0
  - npm install -g yarn
before_script:
  # CodeClimate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  # Setup environment
  - yarn install
  - bundle exec rake db:create
  - bundle exec rake db:schema:load
script:
#  - yarn eslint
#  - bundle exec scss-lint app/assets/stylesheets/
  - bundle exec rubocop
  - bundle exec rspec
  - bundle exec brakeman
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

Set node 10.0 for Travis CI
Set node 10.0 for Travis CI
