forked from craigcitro/r-travis
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
54 lines (52 loc) · 2.11 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
# .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
# language: objective-c
env:
global:
- OS=$(uname -s)
matrix:
- BOOTSTRAP_LATEX=" "
- R_BUILD_ARGS=" " R_CHECK_ARGS="--as-cran" BOOTSTRAP_LATEX="1" _R_CHECK_CRAN_INCOMING_=TRUE
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(!any(c("assertthat", "testthat", "roxygen2") %in% installed.packages())'
- ./travis-tool.sh install_github assertthat testthat klutometis/roxygen
- Rscript -e 'library(assertthat); library(testthat); library(roxygen2)'
# 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)'