addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-5
    - g++-5
    - gfortran-5
cache: packages
sudo: false
latex: false
language: r
r:
- release
#- devel
#before_install:
#- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
install:
- mkdir -p ~/.R && cp ./util/gcc5.conf ~/.R/Makevars
- R --no-save -f ./util/update-dependencies.R
script: ./util/travis/script
#
# http://stackoverflow.com/questions/25567391/change-c-compiler-for-cmake-under-travisci
env:
- OMP_NUM_THREADS=4 INSTALLMAKEFLAGS='-j 4' IMX_SAFE=1

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-5
    - g++-5
    - gfortran-5
cache: packages
sudo: false
latex: false
language: r
r:
- release
#- devel
#before_install:
#- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
install:
- mkdir -p ~/.R && cp ./util/gcc5.conf ~/.R/Makevars
- R --no-save -f ./util/update-dependencies.R
script: ./util/travis/script
#
# http://stackoverflow.com/questions/25567391/change-c-compiler-for-cmake-under-travisci
env:
- OMP_NUM_THREADS=2 IMX_SAFE=1

Reduce likelihood of g++ running out of RAM
Reduce likelihood of g++ running out of RAM
