language: ruby
rvm:
- 2.2.1
before_install:
- sudo apt-get update -qq
before_script:
- psql -c 'create role fr login createdb;' -U postgres
addons:
  postgresql: 9.3
  code_climate:
    repo_token: 9d2abe9e2bdfe62892cf37ae25ff3e825b07dad9401025adcb6f387ac82a35a8
script:
- bundle exec rake db:create
- bundle exec rake db:migrate
- bundle exec rake spec
- bundle exec rake rubocop
deploy:
  provider: heroku
  api_key:
    secure: dkfq0S/ZZ6gFYMw2xIAxb+icoA369uTdYCVQZBalAocjVax1Idfqw1eAYrBlaBJ1P8vD87H5ziYcXJnszCd+qXwlLwD86OmrtPMrpZo2kvO+2aH4zffookWMfbcH1IV6qtICjWXV3NSF5xspmj2Ho/D/CB0/HYisr9eBE9eoJls=
  app: fr-staff-app
  on:
    repo: ministryofjustice/fr-staffapp
  run:
  - "rake db:migrate"
language: ruby
before_install:
- sudo apt-get update -qq
before_script:
- psql -c 'create role fr login createdb;' -U postgres
addons:
  postgresql: 9.3
  code_climate:
    repo_token: 9d2abe9e2bdfe62892cf37ae25ff3e825b07dad9401025adcb6f387ac82a35a8
script:
- bundle exec rake db:create
- bundle exec rake db:migrate
- bundle exec rake spec
- bundle exec rake rubocop
deploy:
  provider: heroku
  api_key:
    secure: dkfq0S/ZZ6gFYMw2xIAxb+icoA369uTdYCVQZBalAocjVax1Idfqw1eAYrBlaBJ1P8vD87H5ziYcXJnszCd+qXwlLwD86OmrtPMrpZo2kvO+2aH4zffookWMfbcH1IV6qtICjWXV3NSF5xspmj2Ho/D/CB0/HYisr9eBE9eoJls=
  app: fr-staff-app
  on:
    repo: ministryofjustice/fr-staffapp
  run:
  - "rake db:migrate"
Remove Ruby version in Travis CI config
Remove Ruby version in Travis CI config

Travis documentation states:

'Travis CI will consult .ruby-version in the root of the repository and
use the indicated Ruby runtime.'

So there's no need for the parameter in .travis.yml file as the repo
holds .ruby-version file.
