forked from tidyverse/dplyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (41 loc) · 1.48 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
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 r_binary_install ggplot2
- ./travis-tool.sh r_binary_install RSQLite
- ./travis-tool.sh r_binary_install RMySQL
- ./travis-tool.sh r_binary_install rgl
- ./travis-tool.sh r_binary_install XML
- ./travis-tool.sh r_binary_install knitr
- ./travis-tool.sh github_package hadley/hflights
- ./travis-tool.sh github_package bigrquery
- if [ "$RCPP" = "release" ]; then ./travis-tool.sh r_binary_install Rcpp; 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 hflights;' -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(dplyr); lahman_sqlite(); lahman_postgres()"
- Rscript -e "library(dplyr); hflights_postgres(); hflights_sqlite()"
script: ./travis-tool.sh run_tests
after_failure:
- ./travis-tool.sh dump_logs
branches:
except:
- /-expt$/
- solaris
notifications:
email:
on_success: change
on_failure: change
env:
- RCPP=release PKG_CXXFLAGS="-g -O3 -Wall -pedantic"
- RCPP=devel PKG_CXXFLAGS="-g -O3 -Wall -pedantic"