この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
jenkins_自動テスト_iosコードチェック [2015/11/26 15:42] monden [podsが有る場合の注意点] |
jenkins_自動テスト_iosコードチェック [2015/11/26 15:51] (現在) monden [jenkins側での準備] |
||
---|---|---|---|
ライン 49: | ライン 49: | ||
===== 参考URL ===== | ===== 参考URL ===== | ||
・http://qiita.com/shouta_a/items/3333182dfe4ecae7e3ea | ・http://qiita.com/shouta_a/items/3333182dfe4ecae7e3ea | ||
+ | |||
+ | ====== PMD ====== | ||
+ | ===== PMD導入方法 ===== | ||
+ | ==== jenkins側での準備 ==== | ||
+ | ・ビルドに「シェルの実行」を追加 \\ | ||
+ | ・下記コマンドを書き込む \\ | ||
+ | ※ -target、-configuration、-scheme はプロジェクトによって変更すること | ||
+ | |||
+ | xcodebuild clean | ||
+ | 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-json-compilation-database -- -report-type pmd -o build/oclint.xml | ||
+ | | ||
+ | ・ビルド後の処理にPMD警告の集計を追加 \\ | ||
+ | ・集計するファイルに「**/oclint.xml」を書き込む | ||
+ | |||
+ | ===== 参考URL ===== | ||
+ | ・http://www.atmarkit.co.jp/ait/articles/1405/23/news031.html | ||