Browse Source

Add `.travis.yml` configuration file to support travis building

pull/3/head
Philipp Baumann 7 years ago
parent
commit
bd830096e6
  1. 30
      .travis.yml

30
.travis.yml

@ -0,0 +1,30 @@
language: r
sudo: false
cache: packages
r:
- oldrel
- release
- devel
addons:
apt:
packages:
- libhunspell-dev
# We want to use devel devtools to load packages so we can catch package
# installation issues sooner rather than later.
r_github_packages:
- hadley/devtools
# 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:
- if [[ "$TRAVIS_R_VERSION_STRING" = 'devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi
# Only report coverage for the release version
after_success:
- test $TRAVIS_R_VERSION_STRING = 'release' && Rscript -e 'covr::codecov()'
Loading…
Cancel
Save