forked from tidyverse/dplyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.59 KB
/
.travis.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: c
services: PostgreSQL
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- mkdir ~/.R
- ./travis-tool.sh install_github jimhester/covr
- ./travis-tool.sh r_binary_install ggplot2
- ./travis-tool.sh r_binary_install RSQLite
- ./travis-tool.sh r_binary_install RMySQL
- ./travis-tool.sh r_binary_install knitr
- ./travis-tool.sh install_github hadley/lazyeval
- if [ "$RCPP" = "release" ]; then cd ..; git clone https://github.com/RcppCore/Rcpp.git; cd Rcpp; git checkout tags/0.11.5; cd ..; R CMD INSTALL Rcpp; cd dplyr; fi
- if [ "$RCPP" = "devel" ]; then cd ..; git clone https://github.com/RcppCore/Rcpp.git; R CMD INSTALL Rcpp; cd -; fi
- ./travis-tool.sh install_deps
before_script:
# - psql -c 'create database lahman;' -U postgres
# - psql -c 'create database nycflights13;' -U postgres
# - psql -c 'create database test;' -U postgres
# Install dplyr package then cache sqlite and postgres version of Lahman
- R CMD INSTALL .
- Rscript -e "library(methods); library(dplyr); lahman_sqlite()"
- Rscript -e "library(methods); library(dplyr); nycflights13_sqlite()"
# lahman_postgres; #nycflights13_postgres()
script: ./travis-tool.sh run_tests
after_failure:
- ./travis-tool.sh dump_logs
after_success:
- Rscript -e 'library(covr);coveralls()'
branches:
except:
- /-expt$/
- solaris
notifications:
email:
on_success: change
on_failure: change
env:
- RCPP=release PKG_CXXFLAGS="-Wall -pedantic"
- RCPP=devel PKG_CXXFLAGS="-Wall -pedantic"