forked from tnaake/MetCirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (69 loc) · 2 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
72
73
74
language: r
r: bioc-devel
sudo: false
cache:
packages: true
warnings_are_errors: true
## cache apt packages
addons:
apt:
packages:
- libnetcdf-dev
- netcdf-bin
- libhdf5-dev
- libgit2-dev
- texlive-latex-recommended
- texlive-fonts-extra
jobs:
include:
- stage: "Build"
r_packages:
- covr
- knitr
- roxygen2
- testthat
r_github_packages:
- jimhester/lintr
before_install:
- mkdir -p ~/.R
- echo -e 'MAKEFLAGS = -j2' > ~/.R/Makevars
- echo 'options(Ncpus = 2)' > ~/.Rprofile
- echo 'options(repos = c(CRAN = "https://cran.rstudio.com"))' > ~/.Rprofile
- echo 'utils::chooseCRANmirror(ind = 1)' > ~/.Rprofile
script: true
name: "Build dependencies and cache"
- stage: "Check"
r_build_args: --no-build-vignettes --no-manual
r_check_args: --as-cran --no-build-vignettes --no-vignettes --no-manual --no-tests
before_script: rm -rf vignettes
install: skip
name: "examples"
- install: skip
script:
- travis_wait 10 R CMD build --no-build-vignettes --no-manual .
- travis_wait 40 R CMD check --as-cran --no-build-vignettes --no-vignettes --no-manual --no-codoc --no-examples MetCirc*tar.gz
before_script: rm -rf vignettes
name: "tests"
- stage: "CodeCov"
install: skip
script:
- travis_wait 20 Rscript -e 'covr::codecov()'
name: "codecov"
on:
branch: master
- stage: "lintr"
install: skip
script:
- travis_wait 20 Rscript -e 'lintr::lint_package()'
name: "lintr"
on:
branch: "master"
## In general the r-travis script automatically dump the logs after failure but
## because of a bug in travis the output is often truncated. See
## https://github.com/travis-ci/travis-ci/issues/6018
after_failure: sleep 10
notifications:
email:
recipients: thomasnaake@gmail.com
on_success: change
on_failure: change