diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..6c155ea986 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,16 @@ + +version: 2 + +jobs: + build: + machine: true + +workflows: + version: 2 + build: + jobs: + - build: + filters: + branches: + only: + - /.*-circle-.*/ diff --git a/.github/workflows/crossbow.yml b/.github/workflows/crossbow.yml new file mode 100644 index 0000000000..5cd581d789 --- /dev/null +++ b/.github/workflows/crossbow.yml @@ -0,0 +1,105 @@ +# 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. + +# NOTE: must set "Crossbow" as name to have the badge links working in the +# github comment reports! +name: Crossbow + +on: + push: + branches: + - "*-github-*" + +jobs: + package: + name: Package + runs-on: ubuntu-20.04 + steps: + - name: Set up Ruby + uses: actions/setup-ruby@v1 + - name: Checkout Arrow + run: | + git clone --no-checkout https://github.com/apache/arrow arrow + git -C arrow fetch -t https://github.com/apache/arrow master + git -C arrow checkout FETCH_HEAD + git -C arrow submodule update --init --recursive + - name: Free Up Disk Space + shell: bash + run: arrow/ci/scripts/util_cleanup.sh + - name: Build + run: | + set -e + pushd arrow/dev/tasks/linux-packages + rake version:update + rake docker:pull || : + rake BUILD_DIR=build apt:build + sudo rm -rf */*/build + popd + env: + APT_TARGETS: ubuntu-groovy + ARROW_VERSION: 2.1.0.dev612 + REPO: ${{ secrets.REPO }} + YUM_TARGETS: ubuntu-groovy + - name: Docker Push + if: success() + continue-on-error: true + shell: bash + run: | + pushd arrow/dev/tasks/linux-packages + docker login -u "${{ secrets.DOCKERHUB_USER }}" \ + -p "${{ secrets.DOCKERHUB_TOKEN }}" + rake docker:push + popd + env: + APT_TARGETS: ubuntu-groovy + REPO: ${{ secrets.REPO }} + YUM_TARGETS: ubuntu-groovy + # Using GitHub release tries to find a common ancestor between the + # currently pushed tag and the latest tag of the GitHub repository + # (don't know why). + # The tag upload took 43 minutes because of this scan, so use an + # alternative upload script. + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Set up Crossbow + run: | + pip install \ + click \ + github3.py \ + jinja2 \ + jira \ + pygit2 \ + ruamel.yaml \ + setuptools_scm \ + toolz + - name: Upload artifacts + run: | + python arrow/dev/tasks/crossbow.py \ + --queue-path . \ + --queue-remote https://github.com/ursa-labs/crossbow \ + upload-artifacts \ + --pattern "**/*.ddeb" \ + --pattern "**/*.deb" \ + --pattern "**/*.debian.tar.xz" \ + --pattern "**/*.dsc" \ + --pattern "**/*.orig.tar.gz" \ + --sha nightly-2021-01-14-0-github-ubuntu-groovy-amd64 \ + --tag nightly-2021-01-14-0-github-ubuntu-groovy-amd64 + env: + CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..f4d0062a08 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ + +branches: + only: + - master + - /.*-travis-.*/ + +os: linux +dist: trusty +language: generic