-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
47 lines (40 loc) · 1.07 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
language: r
warnings_are_errors: false
sudo: required
addons:
apt:
packages:
- libcurl4-openssl-dev
- libxml2-dev
- libgit2-dev
- libssl-dev
- libssh2-1-dev
- pandoc
- pandoc-citeproc
- r-cran-testthat
- r-cran-devtools
- r-cran-tidyverse
- r-cran-rcppeigen
- r-cran-bh
install:
- R -e 'install.packages("devtools"); devtools::install_deps(dep = T)'
script:
- R CMD build .
- R CMD check *.tar.gz
- R CMD INSTALL *.tar.gz
- R -e 'library(fluEvidenceSynthesis);library(rmarkdown);render("vignettes/modelling.Rmd");render("vignettes/inference.Rmd");render("vignettes/vaccination.Rmd");render("vignettes/adapting-the-transmission-model.Rmd");'
os:
- linux
- osx
notifications:
slack: phe-flumod:lk26uoOoSWKaKpmJiHSesYNW
after_success: ./travis.sh
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master
condition: $TRAVIS_OS_NAME = "linux"