Skip to content

Commit

Permalink
Set CXX1X explicitly when using R-devel
Browse files Browse the repository at this point in the history
Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc
4.6.3, this was causing hunspell installation to fail
  • Loading branch information
jimhester committed Aug 18, 2016
1 parent b996ac9 commit 8439c15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Expand Up @@ -20,11 +20,16 @@ r_github_packages:
# We need to install BiocInstaller for testing Bioconductor packages
bioc_required: true

# Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
# this was causing hunspell installation to fail
before_install:
- test $TRAVIS_R_VERSION_STRING = 'devel' && mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars

# The git config settings are not setup on travis by default
before_script:
- git config --global user.name "travis"
- git config --global user.email "travis@example.org"

# Only report coverage for the release version
after_success:
- test $TRAVIS_R_VERSION_STRING = "release" && Rscript -e 'covr::codecov()'
- test $TRAVIS_R_VERSION_STRING = 'release' && Rscript -e 'covr::codecov()'

0 comments on commit 8439c15

Please sign in to comment.