]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/dev/tasks/homebrew-formulae/github.macos.yml
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / dev / tasks / homebrew-formulae / github.macos.yml
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
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
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
16 # under the License.
17
18 # NOTE: must set "Crossbow" as name to have the badge links working in the
19 # github comment reports!
20 name: Crossbow
21
22 on:
23 push:
24 branches:
25 - "*-github-*"
26
27 jobs:
28 autobrew:
29 name: "Autobrew"
30 runs-on: macOS-latest
31 steps:
32 - name: Checkout Arrow
33 run: |
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
39 env:
40 ARROW_FORMULA: ./arrow/dev/tasks/homebrew-formulae/{{ formula }}
41 run: |
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
46 brew update
47 brew --version
48 brew unlink python@2 || true
49 brew config
50 brew doctor || true
51 cp $ARROW_FORMULA $(brew --repository homebrew/core)/Formula/apache-arrow.rb
52 - name: Test formula
53 run: |
54 brew install -v --HEAD apache-arrow
55 brew test apache-arrow
56 brew audit --strict apache-arrow