forked from KentonWhite/ProjectTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (58 loc) · 2.19 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
49
50
51
52
53
54
55
56
57
58
59
# Sample .travis.yml for R projects.
#
# See README.md for instructions, or for more configuration options,
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki
language: java
script: _R_CHECK_CRAN_INCOMING_=FALSE ./travis-tool.sh run_tests
env:
global:
- WARNINGS_ARE_ERRORS=1
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
- sudo apt-get install liblzma-dev
- IsSourceInstall() { [[ -n "${RELEASE}" ]]; }
- if IsSourceInstall; then export FORCE_SOURCE_INSTALL=1; fi
install:
- if IsSourceInstall; then (
sudo apt-get install --no-install-recommends texinfo texlive-latex-recommended texlive-latex-extra lmodern texlive-fonts-recommended texlive-fonts-extra;
cd ~ &&
svn co -q https://svn.r-project.org/R/${RELEASE}/ r-source &&
cd r-source &&
tools/rsync-recommended &&
R_BATCHSAVE="--no-save --no-restore"
R_BROWSER=xdg-open
PAGER=/usr/bin/pager
PERL=/usr/bin/perl
R_UNZIPCMD=/usr/bin/unzip
R_ZIPCMD=/usr/bin/zip
R_PRINTCMD=/usr/bin/lpr
LIBnn=lib
AWK=/usr/bin/awk
CC=gcc
CFLAGS="-ggdb -pipe -std=gnu99 -Wall -pedantic"
CXX=g++
CXXFLAGS="-ggdb -pipe -Wall -pedantic"
FC=gfortran
F77=gfortran
./configure --enable-R-shlib &&
make -j2 &&
sudo make install
); fi
- ./travis-tool.sh r_binary_install colorspace RColorBrewer dichromat munsell labeling Formula sp mvtnorm TH.data sandwich formatR highr markdown zoo bit gtable reshape2 scales proto quantreg Hmisc mapproj maps hexbin maptools multcomp knitr DBI RUnit gtools signal pastecs chron fastmatch xts reshape ggplot2 lubridate RMySQL RSQLite gdata RODBC pixmap data.table testthat
- ./travis-tool.sh aptget_install unixodbc-dev
- sudo R CMD javareconf
- ./travis-tool.sh install_github johnmyleswhite/log4r
- ./travis-tool.sh install_deps
- Rscript -e "library(RJDBC); library(xlsx); library(RODBC)"
- ./travis-tool.sh dump_sysinfo
notifications:
email:
on_success: change
on_failure: always
after_error:
- ./travis-tool.sh dump_logs
after_failure:
- cat ~/r-source/config.log || true