有没有人通过travis-ci成功地让coverity运行了他们的Objective-C项目。我已经遵循了https://scan.coverity.com/travis_ci上概述的步骤,并且已经将构建提交给coverity,以便对代码库运行分析,但我在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文件&我不认为这两个文件之间有什么明显的区别。
有谁知道我在这方面哪里错了吗?
肖恩
发布于 2014-07-09 03:47:06
不幸的是,Coverity目前不支持直接分析Objective-C。因为您的构建完全由Obj-C代码组成,所以cov-build看不到任何它可以使用的文件。如果您的项目包含标准C/C++,那么这些代码就会包含在内。
我不知道Travis集成是否支持它,但您可以将其他工具的分析结果导入到Coverity平台中。这样,您就可以在一个地方管理所有问题,并拥有全面的指标。
发布于 2015-04-22 18:26:04
根据http://www.coverity.com/press-releases/coverity-unveils-new-version-of-development-testing-platform/的说法,coverity现在似乎支持Objective-C。很难知道它是否都可以通过travis获得,但我会试一试!
https://stackoverflow.com/questions/24590410
复制相似问题