-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
85 lines (72 loc) · 3.49 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Sample .travis.yml for R projects
language: r
r:
- oldrel
group: deprecated-2017Q1
warnings_are_errors: false
sudo: required
cache: packages
env:
global:
- CRAN: https://cran.rstudio.com
#env:
# global:
# - NOT_CRAN=true
#before_install: echo "options(repos = c(CRAN='https://cran.rstudio.com'))" > ~/.Rprofile
before_install:
- sudo apt-get -y install libudunits2-dev
- sudo apt-get -y install libgdal-dev
notifications:
email:
on_success: change
on_failure: change
install:
- Rscript -e 'install.packages("devtools", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("knitr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("dplyr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("sp", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("spacetime", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("digest", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("plyr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("dplyr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("fmesher", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("ggplot2", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("splancs", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("rgdal", repos = "http://cran.rstudio.com")'
- Rscript -e 'install.packages("mapproj", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("rgeos", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("sparseinv", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("gstat", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("Hmisc", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("testthat", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("TMB", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("RcppEigen", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("spdep", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("verification", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("covr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("lintr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("statmod", repos = "https://cran.rstudio.com")'
# - Rscript -e 'install.packages("VCA", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("ggpubr", repos = "https://cran.rstudio.com")'
- Rscript -e 'install.packages("reshape2", repos = "https://cran.rstudio.com")'
- Rscript -e 'devtools::install_github("andrewzm/dggrids")'
# - Rscript -e 'devtools::install_github("jimhester/covr")'
# - Rscript -e 'devtools::install_github("jimhester/lintr")'
# - Rscript -e "install.packages('INLA', repos='https://www.math.ntnu.no/inla/R/stable')"
# - Rscript -e "if (!require('covr')) install.packages('covr',repos='https://cran.us.r-project.org')"
# - Rscript -e "if (!require('knitr')) install.packages('knitr',repos='https://cran.us.r-project.org')"
r_binary_packages:
- XML
- knitr
#r_github_packages:
# - jimhester/covr
# - hadley/testthat
# - jimhester/lintr
# - andrewzm/inla
#after_success:
# - Rscript -e 'library(covr);codecov()'
# - Rscript -e 'library(covr);coveralls()'
# run test coverage only for the travis build
# - "[ $TARGET = travis ] && Rscript -e 'covr::coveralls()'"
after_success:
- Rscript -e 'covr::codecov()'