forked from Crunch-io/rcrunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (73 loc) · 2.28 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
cache: packages
# matrix to include a windows build this can be removed when
# https://github.com/travis-ci/travis-build/pull/1538 is merged in
# the windows build steps are similar to what's in the PR and the process other
# oses use
matrix:
include:
- os: linux
r: 3.4
warnings_are_errors: false
env:
- _R_CHECK_LENGTH_1_LOGIC2_=true
- _R_CHECK_TESTS_NLINES_=0
- _R_CHECK_RD_XREFS_=false
apt_packages:
- libsodium-dev
before_script:
- Rscript -e 'devtools::install_github("rstudio/rmarkdown")'
before_script:
- Rscript -e 'devtools::install_github("rstudio/rmarkdown")'
- Rscript 'dev-misc/compress-mocks.R'
- os: linux
r: oldrel
warnings_are_errors: false
env:
- _R_CHECK_LENGTH_1_LOGIC2_=true
- _R_CHECK_TESTS_NLINES_=0
- _R_CHECK_RD_XREFS_=false
apt_packages:
- libsodium-dev
before_script:
- Rscript 'dev-misc/compress-mocks.R'
- os: linux
r: release
env:
- _R_CHECK_LENGTH_1_LOGIC2_=true
- _R_CHECK_TESTS_NLINES_=0
- secure: "BWvMPmOiTzFNfFz3Ok+WHk6FjNNjK8qV5QohBhS0bgsMgeCrx4Zu3IXp42cXaEzzCe/VEnnEyYYTkZROS3mdLRAlOHnEHvCJMtETOODOK6EFGUFDv+C7AXZyqbdoNPrGrW5QKppHAVbTuL/A9z+tnBaeyG68GhOmOFBk4mciHNc="
apt_packages:
- libsodium-dev
before_script:
- Rscript 'dev-misc/compress-mocks.R'
after_success:
- Rscript -e 'covr::codecov()'
- R CMD INSTALL $PKG_TARBALL
- export _R_CHECK_LENGTH_1_LOGIC2_=false # can be remove when https://github.com/jimhester/lintr/issues/377 is merged
- Rscript -e 'lintr::lint_package()'
- bash pkgdown.sh
- os: linux
r: devel
env:
- _R_CHECK_LENGTH_1_LOGIC2_=true
- _R_CHECK_TESTS_NLINES_=0
apt_packages:
- libsodium-dev
before_script:
- Rscript 'dev-misc/compress-mocks.R'
- os: windows
language: shell
env:
- _R_CHECK_LENGTH_1_LOGIC2_=true
- _R_CHECK_CRAN_INCOMING_=false
- R_QPDF=true
- _R_CHECK_TESTS_NLINES_=0
before_install:
- source .travis.win.install.sh
before_script:
- Rscript 'dev-misc/compress-mocks.R'
script:
- R.exe CMD build . --no-manual
- R.exe CMD check $PKG_TARBALL --no-manual --as-cran --install-args=--build
after_success: echo 'Done!'