-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.4 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
# Sample .travis.yml for R projects.
#
# See README.md for instructions, or for more configuration options,
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki
#Use R
language: r
cache:
- packages
warnings_are_errors: false
r_build_args: "--no-build-vignettes --no-manual"
r_check_args: "--no-build-vignettes --no-manual --ignore-vignettes"
dist: xenial
os: linux
# environment variables set for all builds
env:
global:
- BIOC_USE_DEVEL="FALSE" ## Use the current release version
addons:
apt:
packages:
- libnetcdf-dev # for mzR, a dependency of xcms
- netcdf-bin # for ncdf4, a dependency of mzR
- ghostscript # for checking size of PDFs
r:
- oldrel
- release
- devel
r_github_packages:
- jmosl01/lcmsfishdata
install:
- Rscript -e 'install.packages(c("remotes"));if (!all(c("remotes") %in% installed.packages())) { q(status = 1, save = "no")}'
- Rscript -e 'remotes::install_version("XML", "3.99-0.3")'
- Rscript -e 'remotes::install_github("jmosl01/lcmsfishdata")'
- Rscript --verbose -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing:", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'
after_success:
- Rscript -e 'covr::codecov()'
notifications:
email:
on_success: change
on_failure: change