forked from sparklyr/sparklyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (76 loc) · 2.07 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
dist: trusty
sudo: false
branches:
only:
- master
cache:
packages: true
warnings_are_errors: true
matrix:
include:
- name: "Spark 1.6.3 (R 3.2, openjdk7)"
r: 3.2
env:
- SPARK_VERSION="1.6.3"
- JAVA_VERSION=openjdk7
- name: "Spark 2.2.1 (R oldrel, oraclejdk8)"
r: oldrel
env:
- SPARK_VERSION="2.2.1"
- JAVA_VERSION=oraclejdk8
- name: "Spark 2.3.2 (R release, oraclejdk8)"
r: release
env:
- SPARK_VERSION="2.3.2"
- JAVA_VERSION=oraclejdk8
- CODE_COVERAGE="true"
- name: "Livy 0.5.0 (R release, oraclejdk8, Spark 2.3.0)"
r: release
env:
- LIVY_VERSION="0.5.0"
- SPARK_VERSION="2.3.0"
- JAVA_VERSION=oraclejdk8
- name: "Arrow (R release, oraclejdk8)"
r: release
env:
- R_ARROW="true"
- JAVA_VERSION=oraclejdk8
addons:
apt:
sources:
- sourceline: deb https://arrowlib.rstudio.com/ubuntu/ trusty universe
key_url: https://arrowlib.rstudio.com/ubuntu/red-data-tools-keyring.gpg
packages:
- apt-transport-https
- lsb-release
- libarrow-dev
- libarrow-glib-dev
- name: "Devel (tidyverse, r-lib, forge)"
env: R_DEVEL_PACKAGES="true"
r_github_packages:
- tidyverse/dplyr
- tidyverse/dbplyr
- tidyverse/tibble
- r-lib/rlang
- rstudio/forge
allow_failures:
- env: R_DEVEL_PACKAGES="true"
before_install:
- jdk_switcher use $JAVA_VERSION
- echo $JAVA_HOME
- if [[ $R_ARROW == "true" ]]; then Rscript .travis.R --arrow; fi
script:
- |
R CMD build .
export SPARKLYR_LOG_FILE=/tmp/sparklyr.log
R CMD check --no-build-vignettes --no-manual --no-tests sparklyr*tar.gz
if [[ $CODE_COVERAGE == "true" ]]; then
Rscript .travis.R --coverage
else
Rscript .travis.R --testthat
fi
after_failure:
- |
grep -B 10 -A 20 ERROR /tmp/sparklyr.log