language: r
r: bioc-devel
sudo: required

r_packages:
  - knitr
  - XML
  - plyr
  - doParallel
  - foreach
  - iterators

apt_packages:
  - libnetcdf-dev
  - libhdf5-dev
  - netcdf-bin

# Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
# Thanks to jimhester pointing this out!
before_install:
  - if [[ "$TRAVIS_R_VERSION_STRING" = 'bioc-devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi

script: 
  - | 
    travis_wait 20 R CMD build .
    R CMD check --no-build-vignettes --no-vignettes mzR*tar.gz