language: ruby
sudo: false
cache:
  bundler: true
  directories:
    - client/node_modules
rvm:
  - 2.3.1
script:
  - npm run jest:silent && codecov
  - npm run build:test
  - npm run lint
  - bundle exec rake spec
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - bundle exec rake db:create
  - bundle exec rake db:structure:load
  # use version 7 of node instead of whatever travis uses so jest actually works
  - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 7.0.0
  - npm install  # Make use of 'postinstall' to run 'cd ./client npm install'
  - npm install -g codecov
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:
    - client/node_modules
rvm:
  - 2.3.1
script:
  - npm run jest:silent && codecov
  - npm run build:test
  # - npm run lint
  - bundle exec rake spec
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - bundle exec rake db:create
  - bundle exec rake db:structure:load
  # use version 7 of node instead of whatever travis uses so jest actually works
  - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 7.0.0
  - npm install  # Make use of 'postinstall' to run 'cd ./client npm install'
  - npm install -g codecov
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

Disable linting on Travis until we get around to fixing it
Disable linting on Travis until we get around to fixing it
