私は C# プロジェクトを持っています: https://github.com/Pro/dkim-exchange
Travis CI を使用します: https://travis-ci.org/Pro/dkim-exchange
Travis は私のプロジェクトを正常にビルドします。
自動コード品質測定を行うように Coverity をセットアップしたいと考えていました。このために.travis.yml
、次のように構成しました。
language: objective-c
env:
global:
- EnableNuGetPackageRestore=true
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "kC7O0CWm9h4g+tzCwhIZEGwcdiLrb1/1PijeOKGbIWGuWS7cIksAkj2tRNMgtxxcE9CFQr8W7xDv2YzflCIlqN1nGkFjbyD4CrNg6+V1j0fZjPOQ6ssdBBVPrfrvecsAUJ0/48Tqa9VTkEpZSlwOF/VS1sO2ob36FVyWjtxvG9s="
matrix:
- MONO_VERSION="3.10.0"
install:
# Fetch Mono
- wget "http://download.mono-project.com/archive/${MONO_VERSION}/macos-10-x86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg"
- sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target /
script:
- xbuild travis.proj
addons:
coverity_scan:
project:
name: "Pro/dkim-exchange"
description: "Build submitted via Travis CI"
notification_email: mail@example.com
build_command_prepend: "xbuild /t:CleanAll travis.proj"
build_command: "xbuild /t:Build travis.proj"
branch_pattern: coverity_scan
ここに示されているように (msbuild を使用して) Coverity ビルド コマンドを実行すると: https://scan.coverity.com/download?tab=csharpアップロードされたアーカイブは正しく分析されますが、travis と組み合わせると、Coverity 分析は失敗します (例を参照)。このビルド ログ: https://travis-ci.org/Pro/dkim-exchange/builds/42295611 )。この警告があります:
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
これは、Mono の xbuild に関連している可能性があると思います。残念ながら、Dr. Google は Coverity+xbuild について何も見つけられませんでした。Coverity は xbuild をサポートしていますか? はいの場合、どうすればプロジェクトを正しくセットアップできますか?