Skip to content

Commit 4e2277c

Browse files
committed
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.
1 parent 9c72a19 commit 4e2277c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ before_script:
2020
- bundle exec rake --version
2121
- bundle exec rake db:create
2222
- bundle exec rake db:migrate
23+
script:
2324
# fail build if db/schema.rb update is not committed
2425
- git diff --exit-code
25-
script: "bundle exec rake $RAKE_TASK"
26+
- "bundle exec rake $RAKE_TASK"
2627

2728
rvm:
2829
- '1.9.3'

0 commit comments

Comments
 (0)