forked from HenrikBengtsson/matrixStats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
111 lines (108 loc) · 3.46 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#----------------------------------------------------------------
# Travis-CI configuration for R packages
#
# REFERENCES:
# * Travis CI: https://docs.travis-ci.com/user/languages/r
# * covr: https://github.com/jimhester/covr
#
# YAML validated using http://www.yamllint.com/
#----------------------------------------------------------------
language: r
sudo: false
cache: packages
warnings_are_errors: false
r_check_args: --as-cran
latex: false
matrix:
include:
- os: linux
r: oldrel
- os: linux
r: release
- os: linux
r: release
addons:
apt:
packages:
- valgrind
r_check_args: --no-build-vignettes --no-codoc --no-examples --ignore-vignettes --use-valgrind
env:
- NB='w/ valgrind' ## Just a label
- _R_TESTSET_=BASE
- _R_CHECK_USE_VALGRIND_=TRUE
- os: linux
r: release
addons:
apt:
packages:
- valgrind
r_check_args: --no-build-vignettes --no-codoc --no-examples --ignore-vignettes --use-valgrind
env:
- NB='w/ valgrind' ## Just a label
- _R_TESTSET_=ROW_A_SUBSET
- _R_CHECK_USE_VALGRIND_=TRUE
- os: linux
r: release
addons:
apt:
packages:
- valgrind
r_check_args: --no-build-vignettes --no-codoc --no-examples --ignore-vignettes --use-valgrind
env:
- NB='w/ valgrind' ## Just a label
- _R_TESTSET_=ROW_B_SUBSET
- _R_CHECK_USE_VALGRIND_=TRUE
- os: linux
r: release
addons:
apt:
packages:
- valgrind
r_check_args: --no-build-vignettes --no-codoc --no-examples --ignore-vignettes --use-valgrind
env:
- NB='w/ valgrind' ## Just a label
- _R_TESTSET_=VECTOR_SUBSET
- _R_CHECK_USE_VALGRIND_=TRUE
- os: linux
r: devel
env:
- R_KEEP_PKG_SOURCE=yes
- _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true
- _R_S3_METHOD_LOOKUP_USE_TOPENV_AS_DEFENV_=true
- _R_CHECK_CONNECTIONS_LEFT_OPEN_=true
- _R_CHECK_LENGTH_1_CONDITION_=true
- _R_CHECK_LENGTH_1_LOGIC2_=true
- os: osx
r: oldrel
- os: osx
r: release
- os: linux
r: release
r_packages:
- covr
r_check_args: --no-codoc --no-examples --no-tests --ignore-vignettes
after_success:
- Rscript -e 'covr::codecov(quiet=FALSE)'
env:
- NB='w/ covr' ## Just a label
before_install:
- Rscript -e 'c(physical = parallel::detectCores(logical = FALSE), logical = parallel::detectCores())'
- export _R_CHECK_TIMINGS_=10;
- if [[ "$_R_TESTSET_" == "BASE" ]]; then
find tests/* -prune -type f -name "*_*.R" | xargs rm;
elif [[ "$_R_TESTSET_" == "ROW_A_SUBSET" ]]; then
find tests/* -prune -type f ! -name "row*_subset.R" | xargs rm;
find tests/* -prune -type f -name "row*Var*_subset.R" | xargs rm;
elif [[ "$_R_TESTSET_" == "ROW_B_SUBSET" ]]; then
find tests/* -prune -type f ! -name "row*_subset.R" | xargs rm;
find tests/* -prune -type f ! -name "row*Var*_subset.R" | xargs rm;
elif [[ "$_R_TESTSET_" == "VECTOR_SUBSET" ]]; then
find tests/* -prune -type f ! -name "*_subset.R" | xargs rm;
find tests/* -prune -type f -name "row*_subset.R" | xargs rm;
elif [[ "$_R_TESTSET_" == "PARALLEL" ]]; then
find tests/* -prune -type f ! -name "*_parallel.R" | xargs rm;
fi
notifications:
email:
on_success: change
on_failure: change