LoginSignup
2
1

More than 5 years have passed since last update.

【メモ】git-rebase 時にVisual Studioでのビルド確認を毎回はさむ方法

Last updated at Posted at 2015-09-18

大人の事情によりrebase時になんとかしてコミットごとのビルド確認を入れたかった。

もっとスマートな方法が見つかるまでこれで凌ぐ。

共通?(未確認)

build.batを作っておく。
そしてgit-bashで以下のコマンドを打つ。

git rebase -i --exec "cmd /k build.bat" hogehoge

hogehogeはリベース先のブランチ名など。

build.batの例

Visual Studio 2008 (VC 9.0)

build.bat
@echo off
pushd %~dp0

call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"

VCBUILD || exit 1
exit 0

※ ソリューションファイルのあるフォルダに置いておく必要あり。

参考: コマンド ラインでのビルド

2
1
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
2
1