-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
60 lines (51 loc) · 1.42 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
# See https://docs.travis-ci.com/user/languages/r/
dist: trusty
language: r
# R binary packages not supported with 'sudo: false' or 'dist: precise', falling back to source install
sudo: true
cache:
packages: yes
before_install:
- mkdir -p ~/.R/
- echo "CXX14 = g++-7 -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
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
r_binary_packages:
- data.table
- dplyr
- lavaan
- lme4
- nlme
- Rcpp
- reshape2
- rstan
- rstanarm
- tidyverse
apt_packages:
- libxml2-dev
- libv8-dev
r_github_packages:
- achetverikov/APAstats/apastats
# repos:
# CRAN: https://mran.microsoft.com/snapshot/2018-07-01
script:
- |
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")'
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")'
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: docs
verbose: true