- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试添加Codecov到我的 CI 构建系统 library 。travis script看起来像这样:
lcov --directory . --capture --output-file coverage.info --gcov-tool gcov-8 # capture coverage info
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
lcov --list coverage.info # debug info
# Uploading report to CodeCov
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
当我在本地 Linux Mint 机器上运行这些命令时,一切都按预期运行。但在特拉维斯上却并非如此。 Report看起来像这样:
Capturing coverage data from .
Found gcov version: 8.1.0
Scanning . for .gcda files ...
geninfo: WARNING: /home/travis/build/AMS21/Andres-Standard-Library/CMakeFiles/unittest.dir/test/src/cstddef/offsetof_test.cpp.gcno: Overlong record at end of file!
Found 132 data files in .
Processing unittest.dir/test/src/cstddef/offsetof_test.cpp.gcda
geninfo: WARNING: cannot find an entry for #home#travis#build#AMS21#Andres-Standard-Library#test#include#doctest.h.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for #home#travis#build#AMS21#Andres-Standard-Library#test#src#cstddef#offsetof_test.cpp.gcov in .gcno file, skipping file!
(...)
Finished .info-file creation
lcov: ERROR: no valid records found in tracefile coverage.info
Reading tracefile coverage.info
Reading tracefile coverage.info
lcov: ERROR: no valid records found in tracefile coverage.info
很明显这里有一个问题,但我不明白它是什么。而且我无法在本地计算机上复制它,并且在线搜索我也找不到解决方案。
travis 和我的本地机器都使用 gcov 8.1.0。在 travis 上我使用 lcov 1.13,在我的本地机器上使用 1.12 版本。我使用以下 flags 进行编译:
-Wall (... various warning flags) -m32 -g -O0 -fprofile-arcs -ftest-coverage --coverage
我将非常感谢任何解决方案或想法。
编辑:解决了这个问题。看来 gcc 8 引起了一些问题。使用 gcc 7 效果很好。
最佳答案
我遇到了类似的问题,我通过将 LCOV 更新到 1.13-4 版本解决了它(在 ubuntu 18.04 LTS 上,apt 可用的版本是 1.13-3)
关于c++ - 为什么带有 lcov 的 codecov 在 Travis 上无法正常工作,但在我的本地 Linux Mint 上却无法正常工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51455904/
我收到了这样的警告日志,我的构建失败了。 WARNING: We were unable to find a .travis.yml file. This may not be what you wa
我真的很想使用 Travis 而无需将 .travis.yml 存储在我的存储库的根文件夹中。知道它是否可以移动到不同的文件夹中、存储在另一个存储库中或在 Travis 网站上指定吗? 最佳答案 来自
我有 .travis.yml 文件在我的 repo 的根目录中,但 Travis-Ci 不断给我消息: Could not find .travis.yml, using standard confi
每当我推送一个新的提交时,Travis CI 都会使我的构建失败,并在每个日志的顶部显示这条消息: WARNING: We were unable to find a .travis.yml file
我正在尝试登录自己托管的 Travis Enterprise,但通常是 travis login和 travis login --pro正在尝试登录到通常的 Travis SAAS 环境 最佳答案 鉴
我希望在我的 Travis CI 存储库设置中声明环境变量,并在我的 .travis.yml 文件中使用它们来部署应用程序并在 Slack 中发布构建通知。 我在 Travis CI 存储库设置中设置
使用 .travis.yml 时,是否有一个环境变量包含 Travis-CI 中当前构建目录的名称?查看文档 here我没有看到。 最佳答案 您可能需要 $TRAVIS_BUILD_DIR,这是我们在
作为我定制的 travis 构建的一部分,我想使用 Travis command-line client在 after_success 脚本中。在这个特定的 repo 中每次成功构建之后,我需要它来触
我有以下 .travis.yml : sudo: required language: node_js branches: only: - master before_install:
我的本地存储库中有一个有效的 .travis.yml。让我们以 travis 帮助中的示例为例:https://github.com/travis-ci/build-stages-demo/blo
所以,我在 GitHub 上设置为另一个用户拥有的项目的合作者 (我有完全推送权等)。我可以设置 Travis 吗 这个项目?我在“存储库”列表中找不到存储库 特拉维斯。 最佳答案 只有存储库管理员可
每次推送到存储库 Y 时,有没有办法触发存储库 X 的 Travis CI 构建?具体来说,我希望每次推送到 http://github.com/tensorflow/tensorflow 时都开始构
我想针对许多浏览器测试我的 .js 框架的不同版本 我希望写一些类似的东西: language: node_js node_js: - 0.11 env: matrix: - BUILD=
我有一个在 Linux 和 OSX 上运行的 travis 作业,我希望能够使用它为每个平台部署不同的构建工件到 github 版本。我的 .travis.yml文件目前看起来像这样: languag
我在 Travis 文件中有以下部署脚本并面临多行命令问题。我尝试了很多组合,但找不到合适的解决方案。如果我将它提取到文件并从脚本属性调用它,它可以正常工作,但我们的目标是将所有命令作为多行命令放在脚
我在 Travis 文件中有以下部署脚本并面临多行命令问题。我尝试了很多组合,但找不到合适的解决方案。如果我将它提取到文件并从脚本属性调用它,它可以正常工作,但我们的目标是将所有命令作为多行命令放在脚
我正在尝试使用以下配置让 Travis 上传到 PyPI deploy: provider: pypi user: P403n1x87 password: $PYPI_PASSWORD
这是有问题的公共(public)存储库:https://travis-ci.org/agerwick/raw-sinatra-boilerplate 我按照此处的建议集成了 codeclimate 的
在那里,在我的项目中使用travis-ci时遇到了“分段错误”错误:IPython-Dashboard msg没有错误,并且在本地运行良好,我感到有些困惑。任何人都可以提出解决问题的任何想法,谢谢。
我有一个带有子目录 ( test ) 的 gem,其中包含用于测试项目的 Rails 3.1.1 应用程序。我正在尝试设置 Travis-CI 以进行持续集成,但是我不知道如何设置我的 .travis
我是一名优秀的程序员,十分优秀!