-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-4649: [C++/CI/R] Add nightly job that tests the homebrew formula #5360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
163c67a
Add homebrew formula and crossbow nightly task
nealrichardson 262c241
Rename homebrew task yml; add to LICENSE
nealrichardson ea4368e
Re-alphabetize the seds in 00-prepare.sh
nealrichardson 40fc370
Attempt to set the homebrew formula arrow version in the release script
nealrichardson 34af2a9
Add missing test assertion
nealrichardson 6d00fe4
Fix regular expression
nealrichardson a133385
Fix test (hopefully?)
nealrichardson d61290a
Remove bottle shas
nealrichardson 89dea4f
Parametrize homebrew task and also test 'autobrew'
nealrichardson b25ac6d
Fix licensing/:rat: for ci/apache-arrow.rb
nealrichardson 8816279
Fix autobrew audit check [skip ci]
nealrichardson 79e9191
Remove autoconf from homebrew formula because new jemalloc no longer …
nealrichardson ff1489e
Use regular snapshot version for homebrew formula
nealrichardson 1d6512b
Move homebrew formulae inside dev/tasks. Update autobrew package vers…
nealrichardson 851ac6e
Sort hunks :muscle:
nealrichardson ea3f9b5
Move autobrew script again and fix URL to match regular homebrew
nealrichardson 4a50a37
Shuffle again
nealrichardson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| class ApacheArrow < Formula | ||
| desc "Columnar in-memory analytics layer designed to accelerate big data" | ||
| homepage "https://arrow.apache.org/" | ||
| url "https://www.apache.org/dyn/closer.cgi?path=arrow/arrow-0.15.0-SNAPSHOT/apache-arrow-0.15.0-SNAPSHOT.tar.gz" | ||
| sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28" | ||
| head "https://github.com/apache/arrow.git" | ||
|
|
||
| depends_on "cmake" => :build | ||
| depends_on "boost" | ||
| depends_on "brotli" | ||
| depends_on "double-conversion" | ||
| depends_on "flatbuffers" | ||
| depends_on "glog" | ||
| depends_on "grpc" | ||
| depends_on "lz4" | ||
| depends_on "numpy" | ||
| depends_on "openssl" | ||
| depends_on "protobuf" | ||
| depends_on "python" | ||
| depends_on "rapidjson" | ||
| depends_on "snappy" | ||
| depends_on "thrift" | ||
| depends_on "zstd" | ||
|
|
||
| def install | ||
| ENV.cxx11 | ||
| args = %W[ | ||
| -DARROW_FLIGHT=ON | ||
| -DARROW_ORC=ON | ||
| -DARROW_PARQUET=ON | ||
| -DARROW_PLASMA=ON | ||
| -DARROW_PROTOBUF_USE_SHARED=ON | ||
| -DARROW_PYTHON=ON | ||
| -DARROW_INSTALL_NAME_RPATH=OFF | ||
| -DPYTHON_EXECUTABLE=#{Formula["python"].bin/"python3"} | ||
| ] | ||
|
|
||
| mkdir "build" | ||
| cd "build" do | ||
| system "cmake", "../cpp", *std_cmake_args, *args | ||
| system "make" | ||
| system "make", "install" | ||
| end | ||
| end | ||
|
|
||
| test do | ||
| (testpath/"test.cpp").write <<~EOS | ||
| #include "arrow/api.h" | ||
| int main(void) { | ||
| arrow::int64(); | ||
| return 0; | ||
| } | ||
| EOS | ||
| system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-o", "test" | ||
| system "./test" | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # 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: ruby | ||
| cache: bundler | ||
|
|
||
| # don't build twice | ||
| if: tag IS blank | ||
|
|
||
| env: | ||
| global: | ||
| - TRAVIS_TAG={{ task.tag }} | ||
| - ARROW_FORMULA=./arrow/dev/tasks/homebrew-formulae/{{ formula }} | ||
|
|
||
| before_script: | ||
| - 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 | ||
| - brew update | ||
| - brew audit $ARROW_FORMULA | ||
| script: | ||
| - brew install -v --build-from-source --HEAD $ARROW_FORMULA | ||
| - brew test $ARROW_FORMULA | ||
|
|
||
| notifications: | ||
| email: | ||
| - {{ job.email }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.