6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

.git/hooks/pre-push 覚書(railsアプリ編)

Last updated at Posted at 2015-09-30

force push マジクソバージョンはこちら→ http://qiita.com/amoO_O/items/141f6fd7ca499575bfd2

git push する前に rubocoprspec を自動で行う。

.git/hooks/pre-push
# !/bin/bash

bundle exec rubocop
cop=$?

bundle exec rspec spec
pec=$?

exit $(($cop || $pec))
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?