我最近开始在Travis-CI(https://travis-ci.org/TGuillerme/)上更新的各种R
软件包中遇到相同的错误。这特别奇怪,因为对于三个有关的软件包,这些更改没有任何代码更改(仅comments changes),但是Travis-CI现在似乎无法安装某些软件包(即magick
和{{1}) })使用运行程序包的非常简单的libgit2
文件,并使用.yml
进行覆盖:
codecov
在这种情况下,我得到的错误(尽管因不同的软件包而异)是与language: r
warnings_are_errors: false
branches:
only:
- master
- release
except:
- CRAN
# Code coverage
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov(token = "5f041826-63f1-47fa-b4a8-9a32633f47fa")'
软件包有关的:
magick
在此之前,还有一条可疑消息:
** package ‘magick’ successfully unpacked and MD5 sums checked Package Magick++ was not found in the pkg-config search path. Perhaps you should add the directory containing `Magick++.pc' to the PKG_CONFIG_PATH environment variable No package 'Magick++' found Using PKG_CFLAGS= Using PKG_LIBS=-lMagick++-6.Q16
我明显缺少什么吗?有没有办法强制Travis-CI自动安装错误的软件包?
再次,这对我来说特别奇怪,因为提交的运行代码更改自last build running without errors起没有不同。
答案 0 :(得分:3)
我能够通过从二进制文件中安装软件包来解决类似问题。
以下内容可能对.travis.yml有帮助:
r_binary_packages:
- libgit2
- magick