-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
58 lines (47 loc) · 1.39 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
# Docs: https://docs.travis-ci.com/user/languages/r/
# Validate your .travis.yml file at http://lint.travis-ci.org/
language: r
cache: packages
sudo: false
# Install nlopt package to help nloptr install.
addons:
apt:
packages:
- libnlopt-dev
#r_github_packages:
# - jimhester/covr
r_packages:
- covr
bioc_packages:
- hopach
- multtest
# Test on 3 versions of R.
r:
- release
- devel
# glmnet no longer works on R 3.5 :/
#- oldrel
env:
global:
# Allow build to continue even if a suggested package cannot be installed.
- _R_CHECK_FORCE_SUGGESTS_=false
matrix:
# Report build completion status once non-"allow_failures" builds are done.
fast_finish: true
# Allow failures on OSX.
allow_failures:
- os: osx
# Allow build to take up to 40 minutes without returning output (esp. during example testing)
# Without this section, travis build will fail to lack of output for 10 minutes.
script:
- |
R CMD build .
travis_wait 40 R CMD check varimpact*.tar.gz
# code coverage testing is timing out after 10 minutes, also need to
# enable travis_wait for this.
#after_success:
# Only check test coverage for R = release and OS = linux.
# - test ${TRAVIS_R_VERSION_STRING} == "release" && test ${TRAVIS_OS_NAME} == "linux" && Rscript -e 'covr::codecov()'
# Get error logs in case of failure.
after_failure:
find *Rcheck -name '*.fail' -print -exec cat '{}' \;