forked from HenrikBengtsson/aroma.core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (74 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#----------------------------------------------------------------
# Travis-CI configuration for R packages
#
# REFERENCES:
# * Travis CI: https://travis-ci.org/
# * r-builder: https://github.com/metacran/r-builder
# * covr: https://github.com/jimhester/covr
#
# Validate your .travis.yml file at http://lint.travis-ci.org/
#----------------------------------------------------------------
language: c
env:
global:
- RENV="./pkg-build.sh" # r-builder
- R_BUILD_ARGS="--no-manual"
- R_CHECK_ARGS="--no-manual --as-cran"
- _R_CHECK_CRAN_INCOMING_=TRUE
- _R_CHECK_FORCE_SUGGESTS_=false
# Need LaTeX? (very time consuming!)
- BOOTSTRAP_LATEX=""
# Skip building vignettes, which iff LaTeX-based are very
# time consuming because LaTeX needs to be installed
# - R_BUILD_ARGS="--no-build-vignettes ${R_BUILD_ARGS}"
# - R_CHECK_ARGS="--no-build-vignettes ${R_CHECK_ARGS}"
# R versions r-builder should test on (ignored by r-travis)
matrix:
- RVERSION=3.1.3
- RVERSION=3.2.2
- RVERSION=devel _R_COVR_=TRUE _R_CHECK_FULL_=TRUE
before_install:
- echo RENV=$RENV
- curl -OL https://raw.githubusercontent.com/HenrikBengtsson/r-builder/master/pkg-build.sh;
- chmod 755 $RENV
- $RENV bootstrap
- if [ "BOOTSTRAP_LATEX" == "true" ]; then
(cd /tmp && curl -OL http://mirrors.ctan.org/macros/latex/contrib/xcolor.zip && cd /usr/share/texmf/tex/latex && sudo unzip /tmp/xcolor.zip && cd xcolor && sudo latex xcolor.ins && sudo texhash);
else
export R_RSP_COMPILELATEX_FALLBACK="copy-force";
fi
- if [[ "$_R_CHECK_USE_VALGRIND_" == "TRUE" ]]; then
export R_BUILD_ARGS="--no-manual --no-build-vignettes";
export R_CHECK_ARGS="--no-manual --no-build-vignettes --no-codoc --no-examples --use-valgrind";
export _R_CHECK_TIMINGS_=10;
sudo apt-get install valgrind;
valgrind --version;
fi
install:
- $RENV install_bioc aroma.light DNAcopy preprocessCore
- $RENV install_r png
- $RENV install_r matrixStats PSCBS R.devices R.filesets R.rsp RColorBrewer
- $RENV install_bioc EBImage GLAD
- $RENV install_r Cairo
script:
- $RENV run_build
- $RENV run_check
after_success:
- $RENV dump_logs_by_extension out
- if [[ "$_R_COVR_" == "TRUE" && -f ".covr.R" ]]; then
$RENV install_devtools;
$RENV install_github jimhester/covr;
curl -OL https://raw.githubusercontent.com/HenrikBengtsson/covr-utils/master/covr-utils.R;
fi
- if [[ "$_R_COVR_" == "TRUE" && -f ".covr.R" ]]; then
$RENV run_script .covr.R;
fi
after_failure:
- $RENV dump_logs
notifications:
email:
on_success: change
on_failure: change
branches:
except:
- /-expt$/