Skip to content

Apache DataFusion SQL Query Engine

ARROW-6833: [R][CI] Add crossbow job for full R autobrew macOS build

Neal Richardsone1b1905c151b
diff --git a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
index 52d2c38df4..1546c18cbb 100644
--- a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
+++ b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
@@ -29,9 +29,9 @@ class ApacheArrow < Formula
root_url "https://autobrew.github.io/bottles"
end
+ # NOTE: if you add something here, be sure to add to PKG_LIBS in r/tools/autobrew
depends_on "cmake" => :build
depends_on "flatbuffers" => :build
- depends_on "aws-sdk-cpp"
depends_on "boost"
depends_on "double-conversion"
depends_on "lz4"
@@ -47,7 +47,7 @@ class ApacheArrow < Formula
-DARROW_JEMALLOC=OFF
-DARROW_USE_GLOG=OFF
-DARROW_PYTHON=OFF
- -DARROW_S3=ON
+ -DARROW_S3=OFF
-DARROW_WITH_LZ4=ON
-DARROW_WITH_ZLIB=ON
-DARROW_WITH_SNAPPY=ON
diff --git a/dev/tasks/homebrew-formulae/travis.osx.r.yml b/dev/tasks/homebrew-formulae/travis.osx.r.yml
new file mode 100644
index 0000000000..bc2f53dfb9
--- /dev/null
+++ b/dev/tasks/homebrew-formulae/travis.osx.r.yml
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+os: osx
+language: r
+cache: packages
+r: {{ r_version }}
+
+# don't build twice
+if: tag IS blank
+
+env:
+ global:
+ - TRAVIS_TAG={{ task.tag }}
+ - LOCAL_AUTOBREW="TRUE"
+ - TEST_R_WITH_ARROW="TRUE"
+
+before_install:
+- git clone --no-checkout {{ arrow.remote }} arrow
+- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
+- if [ $CROSSBOW_USE_COMMIT_ID == true ]; then git -C arrow checkout {{ arrow.head }}; else git -C arrow checkout FETCH_HEAD; fi
+- cd arrow/r
+# This script used to be inside r/tools/ but was moved
+- cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb tools/apache-arrow.rb
+script:
+- travis_wait R CMD build .
+- travis_wait R CMD check arrow_*.tar.gz --as-cran --install-args="--build"
+
+notifications:
+ email:
+ - {{ job.email }}
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 52d46394d1..c98803033d 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -70,6 +70,10 @@ groups:
- gandiva-jar-trusty
- gandiva-jar-osx
+ homebrew:
+ - homebrew-cpp
+ - homebrew-cpp-autobrew
+
############################# Testing tasks #################################
docker:
@@ -122,6 +126,12 @@ groups:
- docker-python-3.6-nopandas
- docker-python-3.7
+ r:
+ - docker-r
+ - docker-r-conda
+ - docker-r-sanitizer
+ - macos-r-autobrew
+
######################## Tasks to run regularly #############################
nightly:
@@ -157,12 +167,12 @@ groups:
- centos-6
- centos-7
- homebrew-cpp
- - homebrew-cpp-autobrew
- gandiva-jar-trusty
- gandiva-jar-osx
- docker-r
- docker-r-conda
- docker-r-sanitizer
+ - macos-r-autobrew
- docker-rust
- docker-cpp
- docker-cpp-cmake32
@@ -1119,6 +1129,14 @@ tasks:
params:
formula: autobrew/apache-arrow.rb
+ macos-r-autobrew:
+ # This tests that the autobrew formula + script work in practice
+ ci: travis
+ platform: osx
+ template: homebrew-formulae/travis.osx.r.yml
+ params:
+ r_version: release
+
############################## Gandiva Tasks ################################
gandiva-jar-trusty: