【发布时间】:2014-07-05 20:41:51
【问题描述】:
有没有人通过 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 文件,我认为这两者之间没有任何明显差异。
有人知道我在哪里做错了吗?
肖恩
【问题讨论】:
-
你能发布你的 build-log.txt 吗?
-
嗨,马克 - 不幸的是,这个文件 (build-log.txt) 位于 travis 服务器上,我无权访问它。
-
好的,当你在本地运行 cov-build 时会发生什么?
-
还没有这样做。您是否在本地从事 Objective-C 项目?会试一试,然后发回我的发现。
标签: ios objective-c static-code-analysis coverity