-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsparklyr.travis.yml
168 lines (160 loc) · 5.08 KB
/
sparklyr.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
dist: trusty
sudo: true
cache:
packages: true
r_github_packages:
- gagolews/[email protected]
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
# warnings_are_errors: true
# env:
# - SPARK_VERSION="2.2.1"
# - JAVA_VERSION=oraclejdk8
# - name: "Spark 2.3.2 (R release, oraclejdk8)"
# r: release
# warnings_are_errors: true
# env:
# - SPARK_VERSION="2.3.2"
# - JAVA_VERSION=oraclejdk8
# - name: "Spark 2.4.4 (R release, oraclejdk8)"
# r: release
# r_packages:
# - glmnet
# warnings_are_errors: true
# env:
# - SPARK_VERSION="2.4.4"
# - JAVA_VERSION=oraclejdk8
# - CODE_COVERAGE="true"
# - name: "Spark master (R release, oraclejdk8)"
# r: release
# warnings_are_errors: true
# env:
# - SPARK_VERSION="master"
# - JAVA_VERSION=oraclejdk8
# - name: "Spark master (R release, openjdk11)"
# r: release
# warnings_are_errors: true
# env:
# - SPARK_VERSION="master"
# - JAVA_URL="https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz"
# - name: "Livy 0.5.0 (R release, oraclejdk8, Spark 2.3.0)"
# r: release
# warnings_are_errors: true
# env:
# - LIVY_VERSION="0.5.0"
# - SPARK_VERSION="2.3.0"
# - JAVA_VERSION=oraclejdk8
- name: "Arrow 0.11.0 (ref = 'dc5df8f')"
r: release
warnings_are_errors: true
env:
- ARROW_ENABLED="true"
- ARROW_BRANCH="dc5df8f"
- 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: "Arrow 0.13.0 (ref = 'apache-arrow-0.13.0')"
r: release
sudo: true
warnings_are_errors: true
env:
- ARROW_ENABLED="true"
- ARROW_VERSION="0.13.0"
- ARROW_BRANCH="apache-arrow-0.13.0"
- ARROW_SOURCE="install"
- JAVA_VERSION=oraclejdk8
# - name: "Arrow Devel (ref = '')"
# r: release
# dist: xenial
# sudo: true
# warnings_are_errors: true
# env:
# - ARROW_ENABLED="true"
# - ARROW_VERSION="devel"
# - ARROW_SOURCE="build"
# - JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
# - LD_LIBRARY_PATH="/usr/local/lib"
# addons:
# apt:
# packages:
# - openjdk-8-jre
# - name: "Deps Devel (tidyverse, r-lib, forge)"
# warnings_are_errors: true
# env: R_DEVEL_PACKAGES="true"
# r_github_packages:
# - tidyverse/dplyr
# - tidyverse/dbplyr
# - tidyverse/tibble
# - r-lib/rlang
# - rstudio/forge
# - r-lib/ellipsis
# - r-dbi/DBI
# allow_failures:
# - env: R_DEVEL_PACKAGES="true"
# - r: release
# dist: xenial
# sudo: true
# warnings_are_errors: true
# env:
# - ARROW_ENABLED="true"
# - ARROW_VERSION="devel"
# - ARROW_SOURCE="build"
# - JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
# - LD_LIBRARY_PATH="/usr/local/lib"
# addons:
# apt:
# packages:
# - openjdk-8-jre
# - r: release
# warnings_are_errors: true
# env:
# - LIVY_VERSION="0.5.0"
# - SPARK_VERSION="2.3.0"
# - JAVA_VERSION=oraclejdk8
before_install:
- sudo mount -t tmpfs tmpfs /tmp
- if [[ ! -z "$JAVA_VERSION" ]]; then jdk_switcher use $JAVA_VERSION; fi
- |
if [[ ! -z "$JAVA_URL" ]]; then
wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
source install-jdk.sh --url $JAVA_URL
fi
- echo $JAVA_HOME
- if [[ ! -z "$ARROW_VERSION" ]]; then chmod +x ./ci/arrow-$ARROW_SOURCE.sh ; "./ci/arrow-$ARROW_SOURCE.sh" $ARROW_VERSION; fi
- if [[ $SPARK_VERSION == "master" ]]; then chmod +x ./ci/spark-master-install.sh ; "./ci/spark-master-install.sh"; fi
- if [[ $ARROW_ENABLED == "true" ]]; then Rscript ci/.travis.R --arrow $ARROW_BRANCH; fi
- |
if [[ $TRAVIS_R_VERSION =~ ^3\.2.* ]]; then
chmod +x ./ci/patch_r_internals_header_file.sh
R_INCLUDE_DIR=/home/travis/R-bin/lib/R/include "./ci/patch_r_internals_header_file.sh"
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 ci/.travis.R --coverage
else
Rscript ci/.travis.R --testthat
fi
after_failure:
- |
grep -B 10 -A 20 ERROR /tmp/sparklyr.log