-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (27 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
32 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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