-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
45 lines (35 loc) · 992 Bytes
/
.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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
os:
- linux
- osx
r:
- oldrel
- release
- devel
- 3.3.0
env:
- TravisCI=true
cache: packages
warnings_are_errors: true
matrix:
exclude:
- os: osx
r: devel
before_install:
- cd pkg
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo chown -R $(whoami) /usr/local/share/man/man7; brew install libgit2; fi
addons:
apt:
packages:
- libgit2-dev
install:
- Rscript -e 'install.packages(c("roxygen2"));if (!all(c("roxygen2") %in% installed.packages())) { q(status = 1, save = "no")}' --no-init-file
- Rscript -e 'install.packages(c("devtools"));if (!all(c("devtools") %in% installed.packages())) { q(status = 1, save = "no")}' --no-init-file
- Rscript -e 'devtools::install_deps(dep = T)' --no-init-file
- Rscript -e 'devtools::document()'
script:
- R CMD build .
- R CMD check *tar.gz
- Rscript -e 'devtools::install()' --no-init-file
- Rscript -e 'devtools::test()' --no-init-file