この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
jenkins_自動テスト_iosコードチェック [2015/11/26 15:49] monden |
jenkins_自動テスト_iosコードチェック [2015/11/26 15:51] (現在) monden [jenkins側での準備] |
||
---|---|---|---|
ライン 52: | ライン 52: | ||
====== PMD ====== | ====== PMD ====== | ||
===== PMD導入方法 ===== | ===== PMD導入方法 ===== | ||
- | ==== jenkins側 ==== | + | ==== jenkins側での準備 ==== |
・ビルドに「シェルの実行」を追加 \\ | ・ビルドに「シェルの実行」を追加 \\ | ||
・下記コマンドを書き込む \\ | ・下記コマンドを書き込む \\ | ||
+ | ※ -target、-configuration、-scheme はプロジェクトによって変更すること | ||
xcodebuild clean | xcodebuild clean | ||
- | xcodebuild -target "XCTestSample" -sdk iphonesimulator -configuration Debug build CONFIGURATION_BUILD_DIR=$WORKSPACE/build | tee xcodebuild.log | + | xcodebuild -target "hitosara" -sdk iphonesimulator -configuration Debug build CONFIGURATION_BUILD_DIR=$WORKSPACE/build | tee xcodebuild.log |
/usr/local/oclint-0.8.1/bin/oclint-xcodebuild | /usr/local/oclint-0.8.1/bin/oclint-xcodebuild | ||
/usr/local/oclint-0.8.1/bin/oclint-json-compilation-database -- -report-type pmd -o build/oclint.xml | /usr/local/oclint-0.8.1/bin/oclint-json-compilation-database -- -report-type pmd -o build/oclint.xml |