1

有没有人通过 travis-ci 成功地在他们的 Objective-C 项目上运行了覆盖。我已经按照https://scan.coverity.com/travis_ci中概述的步骤进行操作,并且我已经将构建提交到覆盖以在代码库上运行分析,但我只是在我的 travis-ci 中收到此错误日志输出:

[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. For more details, please look at: /Users/travis/build/betfair/aping-ios-sdk/cov-int/build-log.txt Extracting SCM data for 0 files... Please see the log file '/Users/travis/build/betfair/aping-ios-sdk/cov-int/scm_log.txt' for warnings and SCM command issues. Added 0 entries [33;1mTarring Coverity Scan Analysis results...[0m [33;1mUploading Coverity Scan Analysis results...[0m travis_fold:end:build_coverity coverity_scan:end $ travis/script.sh

构建的完整输出可在https://s3.amazonaws.com/archive.travis-ci.org/jobs/29211502/log.txt获得

https://github.com/betfair/aping-ios-sdk/blob/coverity_scan/.travis.yml是我的 travis yml 文件的样子,我的构建只是指向https://github.com/betfair/aping- ios-sdk/blob/coverity_scan/travis/coverity.sh来构建项目。

我查看了https://github.com/daksheshvyas/MyHelloWorld/blob/master/.travis.yml上的示例“HelloWorld”.travis.yml 文件,我不相信这两个文件之间有任何明显的差异二。

有人对我在哪里出错有任何想法吗?

肖恩

4

2 回答 2

0

根据http://www.coverity.com/press-releases/coverity-unveils-new-version-of-development-testing-platform/, coverity 现在似乎支持 Objective-C。很难知道它是否都可以通过 travis 获得,但我会试一试!

于 2015-04-22T10:26:03.880 回答
0

不幸的是,Coverity 目前不支持直接分析 Objective-C。由于您的构建完全由 Obj-C 代码组成,因此 cov-build 没有看到任何可以使用的文件。如果您的项目包含标准 C/C++,则将包含这些代码。

我不知道 Travis 集成是否支持它,但是您可以将其他工具的分析结果导入 Coverity 平台。这样,您就可以在一个地方管理所有问题并拥有全面的指标。

于 2014-07-08T19:47:06.073 回答