-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
52 lines (49 loc) · 1.3 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: required
cache: packages
latex: false
fortran: false
matrix:
include:
- r: oldrel
- r: release
r_packages:
- covr
- devtools
# - pkgdown
r_github_packages:
- r-lib/pkgdown
- metrumresearchgroup/covrpage
after_success:
- Rscript -e "covr::codecov()"
deploy:
provider: script
script: Rscript -e 'devtools::install(); covrpage::covrpage_ci(); pkgdown::deploy_site_github()'
skip_cleanup: true
- r: devel
- r: release
os: osx
notifications:
email:
on_success: change
on_failure: change
addons:
apt:
sources:
- sourceline: 'ppa:keithw/glfw3'
packages:
- libglfw3
- devscripts
brew_packages:
- fontconfig
- glfw
- checkbashisms
before_install:
- test "$TRAVIS_OS_NAME" == "linux" && sh .travis/before_install_linux.sh || true
- test "$TRAVIS_OS_NAME" == "osx" && sh .travis/before_install_osx.sh || true
script:
- test "$TRAVIS_OS_NAME" == "linux" && export LD_PRELOAD="/usr/local/lib64/libmkl_core.so:/usr/local/lib64/libmkl_gnu_thread.so" || true
- export PKG_TARBALL=RcppArrayFire_$(grep '^Version:' DESCRIPTION | grep -oE '[0-9\.]+').tar.gz
- R CMD build --no-manual .
- R CMD check --no-manual $PKG_TARBALL