-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (33 loc) · 1.08 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache: packages
dist: xenial
latex: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
global:
- MAKEFLAGS="-j 2"
before_install:
- mkdir -p ~/.R/
- echo "CXX14 = g++-8 -fPIC -flto=2" >> ~/.R/Makevars
- echo "CXX14FLAGS = -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-attributes -O3" >> ~/.R/Makevars
install:
- ./tools/travis/install-$TRAVIS_OS_NAME
- echo "library(devtools); devtools::install_github('jpritikin/covr')" | R --vanilla
before_script:
- export _R_CHECK_FORCE_SUGGESTS_=false
- echo "pkgbuild::compile_dll(); devtools::document(roclets = c('rd', 'collate', 'namespace'))" | R --vanilla
script:
- |
R CMD build --no-build-vignettes .
travis_wait 59 R CMD check --ignore-vignettes pcFactorStan*tar.gz
after_success:
- travis_wait 40 Rscript ./tools/covr.R
after_failure:
- cat pcFactorStan.Rcheck/00*