我想在Travis构建中为R包使用gcc4.9
和gcc5
。在当前的.travis.yml
中,我已经定义了指向相关包和导出环境变量的位置。
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
cache: packages
latex: false
fortran: false
r_binary_packages:
- knitr
jobs:
include:
- r: oldrel
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- r: release
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
after_success:
- Rscript -e 'covr::codecov()'
warnings_are_errors: true
- os: osx
warnings_are_errors: true
matrix:
fast_finish: true
env:
global:
- TRAVIS_CXXFLAGS="-Wall -Wextra -pedantic -Werror"
当我查看原始日志时,我可以看到travis调用了gcc 4.8:
gcc版本
gcc(Ubuntu 4.8.4-2ubuntu1〜14.04.3)4.8.4