-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1.27 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
language: R
cache: packages
warnings_are_errors: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
before_install:
- echo "options(repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/xenial/latest'))" >> ~/.Rprofile.site
- echo "options(HTTPUserAgent = paste0('R/', getRversion(), ' R (',
paste(getRversion(), R.version['platform'], R.version['arch'], R.version['os']),
')'))" >> ~/.Rprofile.site
- 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
install:
- R -e "install.packages('rstan')"
- R -e "install.packages('devtools')"
- R -e "devtools::install_github('JihongZ/StanDCM')"
script:
- R -e "rstan::stan_version()"
- R -e "library(rstan);library(StanDCM);StanDINA.run(Qmatrix, respMatrix, iter=500, init.list='cdm', warmup = 100)"
- R -e "library(rstan);library(StanDCM);StanDINO.run(Qmatrix, respMatrix, iter=500, init.list='cdm', warmup = 100)"
notifications:
email:
on_success: change
on_failure: change