Move git diff --exit-code so build fails instead of errors

MSP-11616

With `git diff --exit-code` in `before_script` it caused the build to
show as errored in travis and didn't turn the merge button red, so try
moving to the `script` section to see if that will make the merge button
red.
bug/bundler_fix
Luke Imhoff 2014-11-14 12:50:27 -06:00
parent 9c72a195d8
commit 4e2277c7d1
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 2 additions and 1 deletions

View File

@ -20,9 +20,10 @@ before_script:
- bundle exec rake --version - bundle exec rake --version
- bundle exec rake db:create - bundle exec rake db:create
- bundle exec rake db:migrate - bundle exec rake db:migrate
script:
# fail build if db/schema.rb update is not committed # fail build if db/schema.rb update is not committed
- git diff --exit-code - git diff --exit-code
script: "bundle exec rake $RAKE_TASK" - "bundle exec rake $RAKE_TASK"
rvm: rvm:
- '1.9.3' - '1.9.3'