forked from ccagc/QDNAseq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (63 loc) · 2.2 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
#----------------------------------------------------------------
# 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
# * Coveralls: https://coveralls.io/
#
# 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_FORCE_SUGGESTS_=false
# Need LaTeX? (very time consuming!)
- BOOTSTRAP_LATEX=""
# 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}"
- BIOC_USE_DEVEL="TRUE"
# R versions r-builder should test on (ignored by r-travis)
matrix:
# - RVERSION=3.0.3
# - RVERSION=3.1.2
- RVERSION=devel
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
install:
- $RENV install_r R.utils matrixStats R.cache digest future
- $RENV install_bioc Biobase CGHbase CGHcall DNAcopy Rsamtools BSgenome GenomeInfoDb BiocStyle
## Less overhead when not using 'install_deps'
## - $RENV install_deps
script:
- $RENV run_build
- $RENV run_check
after_success:
- $RENV dump_logs_by_extension out
- $RENV install_devtools
- $RENV install_github HenrikBengtsson/R.methodsS3@develop
- $RENV install_github HenrikBengtsson/covr
- curl -OL https://raw.githubusercontent.com/HenrikBengtsson/covr-utils/master/covr-utils.R
- $RENV run_script .coveralls.R
after_failure:
- $RENV dump_logs
notifications:
email:
on_success: change
on_failure: change
branches:
except:
- /-expt$/