-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
68 lines (57 loc) · 1.69 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
#minimal requirements for travis and R
language: R
cache: packages
sudo: false
# environment variables set for all builds
env:
global:
- BIOC_USE_DEVEL="FALSE" ## Use the current release version
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
- R_CHECK_ARGS="--no-build-vignettes --no-manual --timings"
#Define multiple R-versions; this is for old release and current
r:
- oldrel
- release
# do not build vignettes...takes too long and times out on travis
r_build_args: --no-build-vignettes --no-manual
r_check_args: --no-build-vignettes --no-manual --timings
# Set one of your dependencies from CRAN
#By default, Travis CI will find all R packages listed as dependencies in
#your package’s DESCRIPTION file, and install them from CRAN.
packages:
- covr
# Set one of your dependencies from bioconductor
bioc_packages:
- ggtree
- treeio
# Install all system dependencies of ImageMagick. Documented here:
#https://towardsdatascience.com/travis-ci-for-r-advanced-guide-719cb2d9e0e5
addons:
apt:
update: true
packages:
- libmagick++-dev
- librsvg2-dev
- libwebp-dev
- libpoppler-cpp-dev
- libtesseract-dev
- libleptonica-dev
- tesseract-ocr-eng
- libfftw3-dev
- cargo
- gsfonts
- libgs-dev
- qpdf
- ghostscript
#test multiple operating systems
os:
- linux
- osx
# - windows #windows build are in early access stage and r is not supported
#on the windows build environment
script:
- R CMD build . --compact-vignettes=gs+qpdf
- R CMD check *tar.gz --as-cran
after_success:
- Rscript -e 'library(covr); codecov()'