Laravelがちゃがちゃしてます。
pushする前にテストー、linter実行ー、ってやるのがめんどくなってきたので、Makefileとgit hookをひさびさに導入してみました。
ただのメモ。
test: ./vendor/bin/sail artisan migrate:refresh --seed ./vendor/bin/sail artisan test --parallel phpcs: ./vendor/bin/sail composer phpcs phpcbf: ./vendor/bin/sail composer phpcbf all: @make test @make phpcs @make phpbf
$ cat .git/hooks/pre-push #!/bin/sh if ! make all; then echo "テストに失敗しました。" echo "push出来ませんでした。" exec 1 fi $ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0
こうするとpush時に全部実行してfailedがあればpushできなくなります。やったね(何が)