language: ruby
sudo: false
cache: bundler
rvm:
  - 2.3.0
script:
  - npm run test
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - bundle exec rake db:create
  - bundle exec rake db:migrate
  - npm install  # Make use of 'postinstall' to run 'cd ./client npm install'
addons:
  postgresql: "9.3"
  code_climate:
    repo_token: 284c330b001fc405fe9b1c8a013ebaed90e6f81b0318b2e3d0df66559dd0eb3e
env:
  FOG_DIRECTORY=empirical-core-travis-test
  PROGRESS_REPORT_FOG_DIRECTORY=empirical-progress-report-travis-test

language: ruby
sudo: false
cache:
  bundler: true
  directories:
    - node_modules
    - client/node_modules
rvm:
  - 2.3.0
script:
  - npm run test
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - bundle exec rake db:create
  - bundle exec rake db:migrate
  - npm install  # Make use of 'postinstall' to run 'cd ./client npm install'
addons:
  postgresql: "9.3"
  code_climate:
    repo_token: 284c330b001fc405fe9b1c8a013ebaed90e6f81b0318b2e3d0df66559dd0eb3e
env:
  FOG_DIRECTORY=empirical-core-travis-test
  PROGRESS_REPORT_FOG_DIRECTORY=empirical-progress-report-travis-test

Enable Travis caching on node packages
Enable Travis caching on node packages

Currently the npm install phase is taking 150+ seconds to run.

See:
  https://docs.travis-ci.com/user/caching/#Enabling-multiple-caching-features
