forked from NathanSkene/EWCE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1.13 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
language: R
os:
- linux
- osx
r:
- release
- oldrel
services:
- docker
before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
cache: packages
# This section is included to ensure that an earlier version of the XML package is installed, as the latest version of
# XML depends on R4.0
before_install:
- echo TRAVIS_OS_NAME
- echo $TRAVIS_R_VERSION
- echo $TRAVIS_R_VERSION_STRING
- wget https://cran.r-project.org/src/contrib/Archive/XML/XML_3.99-0.3.tar.gz
- R CMD INSTALL XML_3.99-0.3.tar.gz
- rm XML_3.99-0.3.tar.gz
# This is intended to run Docker only when the build on linux/release is completed succesfully on the master branch
#deploy:
# provider: script
# script: bash docker_push
# skip_cleanup: true
# on:
# branch: master
# condition: "$TRAVIS_OS_NAME = linux && $TRAVIS_R_VERSION_STRING = 'release'"
# Email me if it fails to build!
notifications:
email:
recipients:
- n.skene@imperial.ac.uk
on_success: never # default: change
on_failure: always # default: always
# for codecov
r_packages:
- covr
# only report coverage after build is successful
after_success:
- Rscript -e 'covr::codecov()'