1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
18 # NOTE: must set "Crossbow" as name to have the badge links working in the
19 # github comment reports!
32 - name: Checkout Arrow
34 git clone --no-checkout {{ arrow.remote }} arrow
35 git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
36 git -C arrow checkout FETCH_HEAD
37 git -C arrow submodule update --init --recursive
38 - name: Configure homebrew formula for testing
40 ARROW_FORMULA: ./arrow/dev/tasks/homebrew-formulae/{{ formula }}
42 # Pin the current commit in the formula to test so that we're not always pulling from master
43 sed -i.bak -E -e 's@https://github.com/apache/arrow.git"$@{{ arrow.remote }}.git", revision: "{{ arrow.head }}"@' $ARROW_FORMULA && rm -f $ARROW_FORMULA.bak
44 # Sometimes crossbow gives a remote URL with .git and sometimes not. Make sure there's only one
45 sed -i.bak -E -e 's@.git.git@.git@' $ARROW_FORMULA && rm -f $ARROW_FORMULA.bak
48 brew unlink python@2 || true
51 cp $ARROW_FORMULA $(brew --repository homebrew/core)/Formula/apache-arrow.rb
54 brew install -v --HEAD apache-arrow
55 brew test apache-arrow
56 brew audit --strict apache-arrow