-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
executable file
·45 lines (38 loc) · 1.29 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
language: r
r:
- oldrel
- release
- devel
cache: packages
sudo: required
dist: trusty
warnings_are_errors: false
r_packages:
- covr
addons:
apt:
sources:
- sourceline: 'ppa:ubuntugis/ubuntugis-unstable'
before_install:
# install sf dependencies
- sudo apt-get update
- sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
# install anaconda
- wget https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh -O anaconda.sh
- bash anaconda.sh -b -p $HOME/anaconda
- export PATH="$HOME/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
# move credentials
- mkdir ~/.config/earthengine
- mv -v tests/testthat/test-tokens/* ~/.config/earthengine/
# install r packages manually, otherwise R cmd check wont find them
- Rscript -e 'install.packages("KernSmooth", lib="/home/travis/R-bin/lib/R/library")'
- Rscript -e 'install.packages("sf", lib="/home/travis/R-bin/lib/R/library")'
- Rscript -e 'install.packages("reticulate", lib="/home/travis/R-bin/lib/R/library")'
- Rscript -e 'install.packages("googledrive", lib="/home/travis/R-bin/lib/R/library")'
before_script:
- R CMD INSTALL .
- R -e 'earthEngineGrabR::ee_grab_install(clean_credentials = F)'
after_success:
- Rscript -e 'library(covr); codecov()'