-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
86 lines (74 loc) · 2.61 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
85
86
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: false
cache: packages
r:
- devel
bioc_required: true
bioc_use_devel: true
r: bioc-devel
os:
- linux
- osx
before_install:
- echo "TRAVIS_OS_NAME = $TRAVIS_OS_NAME"
- echo "options(repos = c(CRAN='http://cran.rstudio.com'))" > ~/.Rprofile
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get --yes --force-yes update -qq; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install --yes libudunits2-dev; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install udunits; fi;
- export RGL_USE_NULL=TRUE
- Rscript -e 'install.packages("BiocManager")'
- Rscript -e 'BiocManager::install("rhdf5")'
bioc_packages:
- rhdf5
r_packages:
- classInt
- dplyr
- ggplot2
- ggraph
- glue
- grDevices
- igraph
- magrittr
- purrr
- stats
- tibble
- utils
- viridis
- xml2
- cowplot
- knitr
- pkgdown
- rmarkdown
- XML
#
#
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get --yes --force-yes update -qq; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then Rscript -e "install.packages(c('sp', 'devtools'))"; fi;
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install Caskroom/cask/xquartz; fi;
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ghostscript; fi;
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then Rscript -e "setRepositories(ind=1:2);install.packages(c('rgdal','rgeos','RandomFieldsUtils','RandomFields'))"; fi;
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then Rscript -e "setRepositories(ind=1:2);install.packages('digest', type = 'source')"; fi;
#- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo tlmgr update --self; fi;
#install:
# - ./travis-tool.sh bioc_install rhdf5
# - ./travis-tool.sh install_bioc_deps
r_github_packages:
- marionlouveaux/mamut2r # pre-install to avoid vignette package errors
- marionlouveaux/cellviz3d
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then Rscript -e 'pkgdown::build_site()'; fi;
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_PAT
keep-history: true
local-dir: docs
on:
branch: master
condition: $TRAVIS_OS_NAME = linux