forked from sneumann/xcms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (60 loc) · 1.93 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
# language: r
# r: bioc-devel
# sudo: required
# r_packages:
# - knitr
# - XML
# - plyr
# - doParallel
# - foreach
# - iterators
# bioc_packages:
# - xcms
# - Rgraphviz
# apt_packages:
# - texlive-latex-extra
# - texlive-fonts-extra
# - texlive-latex-recommended
# - libnetcdf-dev
# - netcdf-bin
# - libhdf5-dev
# # Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
# # Thanks to jimhester pointing this out!
# before_install:
# - if [[ "$TRAVIS_R_VERSION_STRING" = 'bioc-devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi
language: r
r: bioc-devel
cache: packages
sudo: false # use container based build system
warnings_are_errors: true
dist: trusty
# 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
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
- texlive-latex-recommended
- texlive-fonts-extra
r_packages:
- covr
# before_script:
# - echo "BiocParallel::register(BiocParallel::SerialParam())" > ~/.Rprofile
script:
- |
R CMD build .
travis_wait 40 R CMD check --no-build-vignettes --no-vignettes xcms*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