This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unknown
committed
Jan 14, 2021
0 parents
commit 460533b
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,16 @@ | ||
|
||
version: 2 | ||
|
||
jobs: | ||
build: | ||
machine: true | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
only: | ||
- /.*-circle-.*/ |
This file contains 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,9 @@ | ||
|
||
branches: | ||
only: | ||
- master | ||
- /.*-travis-.*/ | ||
|
||
os: linux | ||
dist: trusty | ||
language: generic |
This file contains 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,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. | ||
|
||
jobs: | ||
- job: linux | ||
pool: | ||
vmImage: ubuntu-latest | ||
timeoutInMinutes: 360 | ||
steps: | ||
- task: CondaEnvironment@1 | ||
inputs: | ||
packageSpecs: 'click github3.py jinja2 jira pygit2 ruamel.yaml setuptools_scm toolz' | ||
installOptions: '-c conda-forge' | ||
updateConda: false | ||
|
||
- script: | | ||
set -ex | ||
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 | ||
displayName: Clone arrow | ||
- script: pip install -e arrow/dev/archery[docker] | ||
displayName: Setup Archery | ||
|
||
- script: | | ||
set -ex | ||
cd arrow | ||
BUILD_IMAGE=centos-python-manylinux1 | ||
archery docker run \ | ||
-e SETUPTOOLS_SCM_PRETEND_VERSION="2.1.0.dev612" \ | ||
-e PYTHON_VERSION="3.7" \ | ||
-e UNICODE_WIDTH="16" \ | ||
${BUILD_IMAGE} | ||
archery docker push ${BUILD_IMAGE} || : | ||
env: | ||
ARCHERY_DOCKER_USER: $(ARCHERY_DOCKER_USER) | ||
ARCHERY_DOCKER_PASSWORD: $(ARCHERY_DOCKER_PASSWORD) | ||
DOCKER_BUILDKIT: 0 | ||
COMPOSE_DOCKER_CLI_BUILD: 1 | ||
displayName: Build wheel | ||
# auditwheel does always exit with 0 so it is mostly for debugging | ||
# purposes | ||
- script: | | ||
set -ex | ||
cd arrow | ||
docker run \ | ||
-v $(pwd):/arrow quay.io/pypa/manylinux1_x86_64 \ | ||
/bin/bash -c \ | ||
"auditwheel show /arrow/python/manylinux1/dist/*.whl" | ||
displayName: Audit wheel | ||
- script: | | ||
set -ex | ||
cd arrow | ||
test_args="" | ||
test_args="${test_args} --remove-system-libs" | ||
docker run \ | ||
--shm-size 2G \ | ||
-v $(pwd):/arrow \ | ||
-e WHEEL_DIR="manylinux1" \ | ||
python:3.7 \ | ||
/arrow/dev/tasks/python-wheels/manylinux-test.sh ${test_args} | ||
displayName: Test wheel | ||
- script: | | ||
set -ex | ||
python arrow/dev/tasks/crossbow.py \ | ||
--queue-path . \ | ||
--queue-remote https://github.com/ursa-labs/crossbow \ | ||
upload-artifacts \ | ||
--pattern "arrow/python/manylinux1/dist/*" \ | ||
--sha nightly-2021-01-14-1-azure-wheel-manylinux1-cp37m \ | ||
--tag nightly-2021-01-14-1-azure-wheel-manylinux1-cp37m | ||
env: | ||
CROSSBOW_GITHUB_TOKEN: $(CROSSBOW_GITHUB_TOKEN) | ||
displayName: Upload packages as a GitHub release | ||
# upload to gemfury | ||
- script: | | ||
path=$(ls arrow/python/manylinux1/dist/*.whl) | ||
curl -F "package=@${path}" https://${CROSSBOW_GEMFURY_TOKEN}@push.fury.io/${CROSSBOW_GEMFURY_ORG}/ | ||
env: | ||
CROSSBOW_GEMFURY_TOKEN: $(CROSSBOW_GEMFURY_TOKEN) | ||
CROSSBOW_GEMFURY_ORG: $(CROSSBOW_GEMFURY_ORG) | ||
displayName: Upload packages to Gemfury | ||