language: cpp before_install: - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update -qq - sudo apt-get install -qq g++-4.8 - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - chmod 755 ./travis-tool.sh - mkdir ~/.R - echo -e "CC=gcc-4.8 -std=gnu99\nCXX=g++-4.8 -std=c++11\nCXXFLAGS=-g -O3\nCFLAGS=-g -O3\n" > ~/.R/Makevars - ./travis-tool.sh bootstrap - ./travis-tool.sh github_package testthat script: - cd .. - R CMD build --no-manual Rcpp11 - FILE=$(ls -1t Rcpp11_*.tar.gz | head -n 1) - R CMD check --no-manual --as-cran "${FILE}" - R CMD INSTALL "${FILE}" - git clone https://github.com/RcppCore/attributes.git - R CMD INSTALL attributes - git clone https://github.com/romainfrancois/Rcpp-test.git - Rscript -e "setwd('Rcpp-test'); library(methods); library(testthat); library(Rcpp11); library(attributes); test_dir('.')" after_script: - ./travis-tool.sh dump_logs notifications: email: on_success: change on_failure: change