-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.travis.yml
57 lines (55 loc) · 2.15 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
# .travis.yml for r-travis.
#
# If you're looking to use r-travis with your project, DO NOT USE THIS
# FILE -- use `sample.travis.yml` instead.
language: c
os:
- linux
- osx
env:
global:
- OS=$(uname -s)
matrix:
- BOOTSTRAP_LATEX=" "
- R_BUILD_ARGS=" " R_CHECK_ARGS="--as-cran" BOOTSTRAP_LATEX="1" _R_CHECK_CRAN_INCOMING_=TRUE BOOTSTRAP_PANDOC="1"
script: ./travis-tool.sh run_tests
notifications:
email:
on_success: change
on_failure: change
before_install:
- cp scripts/travis-tool.sh fakepackage
- cd fakepackage
- ./travis-tool.sh bootstrap
before_script:
- ./travis-tool.sh dump_sysinfo
after_success:
- ./travis-tool.sh dump_logs_by_extension out
after_failure:
- ./travis-tool.sh dump_logs
install:
- ./travis-tool.sh install_deps
# TESTS
#
# The following lines exist to test various features of our travis
# scripts; don't use these as a model for other `.travis.yml` files.
# Test install_aptget with multiple arguments.
# - if test ${OS} = Linux; then test -z "$(which tmux)"; fi
# - if test ${OS} = Linux; then test -z "$(which sponge)"; fi
- if test ${OS} = Linux; then ./travis-tool.sh install_aptget tmux moreutils; fi
# - if test ${OS} = Linux; then test -n "$(which tmux)"; fi
# - if test ${OS} = Linux; then test -n "$(which sponge)"; fi
# Test install_r (which accepts multiple arguments).
- ./travis-tool.sh install_r stringr lubridate
- Rscript -e 'library(stringr); library(lubridate)'
# Test github package installation (which accepts multiple arguments).
#- Rscript -e 'stopifnot(!all(c("selectr", "rvest") %in% rownames(installed.packages())))'
#- ./travis-tool.sh install_github sjp/selectr hadley/rvest
#- Rscript -e 'library(selectr); library(rvest)'
# Test R binary installation.
- if test ${OS} = Linux; then ./travis-tool.sh install_r_binary RUnit survey; fi
- if test ${OS} = Linux; then Rscript -e 'library(RUnit); library(survey)'; fi
- ./travis-tool.sh dump_sysinfo | grep -q 'R version '
- ./travis-tool.sh bioc_install GenomicFeatures AnnotationDbi
- Rscript -e 'library(GenomicFeatures); library(AnnotationDbi)'
- if test ${BOOTSTRAP_PANDOC} = 1; then pandoc --version; fi