language: ruby

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - 2.1.1
  - 2.1.2
  - jruby-19mode

before_script:
  - git config --global user.email "travis@ci.com"
  - git config --global user.name "Travis CI"

script:
  - bundle exec rspec
  - bundle exec rubocop

language: ruby

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - 2.1.1
  - 2.1.2
  - jruby-19mode

before_script:
  - git config --global user.email "travis@ci.com"
  - git config --global user.name "Travis CI"

script:
  - bundle exec rspec
  - bundle exec bin/overcommit --run

Change Travis runs to use `overcommit --run`
Change Travis runs to use `overcommit --run`

This feature was recently added and allows us to run all pre-commit
hooks against this repository. Changing our Travis runs to us it gives
us two benefits:

  * We can dog food the feature itself to ensure it continues working
  * We can add additional tests that this repo should run by adding
    Overcommit hooks, which is a good incentive to add more hooks

This also means that our pre-commit process and our actual CI runs are
now at parity with one another, so there should be no discrepancy
between the two.

Change-Id: I632b67ed5fbfe15824154f8de1bbfd95fe167171
Reviewed-on: http://gerrit.causes.com/45338
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@brigade.com>
Reviewed-by: Shane da Silva <67fb7bfe39f841b16a1f86d3928acc568d12c716@brigade.com>
