-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (34 loc) · 915 Bytes
/
.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
# [borrowed and adjusted from data.table]
# Travis configuration guide for R language:
# https://docs.travis-ci.com/user/languages/r/
# https://github.com/craigcitro/r-travis/wiki/Porting-to-native-R-support-in-Travis
language: r
dist: trusty
sudo: required
cache: packages
warnings_are_errors: true
# for sf -> units, proj, geos, gdal dependencies
addons:
apt:
packages:
- libudunits2-dev
- libproj-dev
- libgeos-dev
- libgdal-dev
r_packages:
- covr
- sp
- sf
- ggplot2
before_script:
- echo "Revision:" $TRAVIS_COMMIT >> ./DESCRIPTION
after_success:
- travis_wait Rscript -e 'library(covr); codecov()'
- test $TRAVIS_REPO_SLUG == "MichaelChirico/geohashTools" && test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master"
notifications:
email:
on_success: change
on_failure: change
env:
global:
- PKG_CFLAGS="-O3 -Wall -pedantic"