forked from MassBank/RMassBank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 1.17 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
language: r
r: bioc-release
cache: packages
# Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
# this was causing mzR installation to fail
# see https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17189
# workaround stolen from https://github.com/hadley/devtools/blob/1ce84b04568ff7846c3da754f28e7e22a23c8737/.travis.yml#L23-L26
before_install:
- if [[ "$TRAVIS_R_VERSION_STRING" = 'bioc-devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi
- sudo $(which R) CMD javareconf
addons:
apt:
packages:
- libnetcdf-dev
- netcdf-bin # libnetcdf-dev doesn't contain nc-config in ubuntu 12.04 (in 16.04 it is part of libnetcdf-dev)
- libhdf5-dev
r_packages:
- covr
script:
- |
R CMD build .
travis_wait 30 R CMD check --no-build-vignettes --no-vignettes RMassBank*tar.gz
after_failure:
find *Rcheck -name '*.fail' -print -exec cat '{}' \;
after_success:
- travis_wait 20 Rscript -e 'covr::codecov()'
# # print timings (of examples) and sysinfo
# after_script:
# - dump_logs_by_extension "timings"
# - dump_sysinfo
notifications:
email:
on_failure: sneumann@ipb-halle.de