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 1af2363
Showing
3 changed files
with
134 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,109 @@ | ||
jobs: | ||
- job: win | ||
pool: | ||
vmImage: vs2017-win2016 | ||
timeoutInMinutes: 360 | ||
variables: | ||
CONFIG: win_python3.6.____cpython | ||
R_CONFIG: win_64_r_base3.6 | ||
ARROW_VERSION: 2.1.0.dev612 | ||
CONDA_BLD_PATH: D:\\bld\\ | ||
UPLOAD_PACKAGES: False | ||
|
||
steps: | ||
- script: | | ||
choco install vcpython27 -fdv -y --debug | ||
condition: contains(variables['CONFIG'], 'vs2008') | ||
displayName: Install vcpython27.msi (if needed) | ||
- powershell: | | ||
Set-PSDebug -Trace 1 | ||
$batchcontent = @" | ||
ECHO ON | ||
SET vcpython=C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0 | ||
DIR "%vcpython%" | ||
CALL "%vcpython%\vcvarsall.bat" %* | ||
"@ | ||
$batchDir = "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC" | ||
$batchPath = "$batchDir" + "\vcvarsall.bat" | ||
New-Item -Path $batchPath -ItemType "file" -Force | ||
Set-Content -Value $batchcontent -Path $batchPath | ||
Get-ChildItem -Path $batchDir | ||
Get-ChildItem -Path ($batchDir + '\..') | ||
condition: contains(variables['CONFIG'], 'vs2008') | ||
displayName: Patch vs2008 (if needed) | ||
- task: CondaEnvironment@1 | ||
inputs: | ||
packageSpecs: 'python=3.6 conda-build conda conda-forge::conda-forge-ci-setup=3 pip' # Optional | ||
installOptions: "-c conda-forge" | ||
updateConda: true | ||
displayName: Install conda-build and activate environment | ||
- script: set PYTHONUNBUFFERED=1 | ||
|
||
- script: | | ||
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 | ||
# Configure the VM | ||
- script: setup_conda_rc .\ .\ .\.ci_support\%CONFIG%.yaml | ||
workingDirectory: arrow\dev\tasks\conda-recipes | ||
|
||
# Configure the VM. | ||
- script: | | ||
set "CI=azure" | ||
call activate base | ||
run_conda_forge_build_setup | ||
displayName: conda-forge build setup | ||
workingDirectory: arrow\dev\tasks\conda-recipes | ||
- script: | | ||
conda.exe build arrow-cpp parquet-cpp -m .ci_support\%CONFIG%.yaml | ||
displayName: Build recipe | ||
workingDirectory: arrow\dev\tasks\conda-recipes | ||
env: | ||
PYTHONUNBUFFERED: 1 | ||
condition: not(contains(variables['CONFIG'], 'vs2008')) | ||
- script: | | ||
conda.exe build r-arrow -m .ci_support\r\%R_CONFIG%.yaml | ||
displayName: Build recipe | ||
workingDirectory: arrow\dev\tasks\conda-recipes | ||
env: | ||
PYTHONUNBUFFERED: 1 | ||
condition: contains(variables['R_CONFIG'], 'win') | ||
# 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. | ||
- task: CondaEnvironment@1 | ||
inputs: | ||
packageSpecs: 'click github3.py jinja2 jira pygit2 ruamel.yaml setuptools_scm toolz' | ||
installOptions: '-c conda-forge' | ||
updateConda: false | ||
- script: | | ||
python arrow/dev/tasks/crossbow.py ^ | ||
--queue-path . ^ | ||
--queue-remote https://github.com/ursa-labs/crossbow ^ | ||
upload-artifacts ^ | ||
--sha nightly-2021-01-14-1-azure-conda-win-vs2017-py36-r36 ^ | ||
--tag nightly-2021-01-14-1-azure-conda-win-vs2017-py36-r36 ^ | ||
--pattern "D:\bld\win-64\*.tar.bz2" | ||
env: | ||
CROSSBOW_GITHUB_TOKEN: $(CROSSBOW_GITHUB_TOKEN) | ||
displayName: Upload packages as a GitHub release | ||
# Upload to custom anaconda channel | ||
- script: | | ||
source activate base | ||
conda install -y anaconda-client | ||
anaconda -t $(CROSSBOW_ANACONDA_TOKEN) upload --force D:\bld\win-64\*.tar.bz2 | ||
displayName: Upload packages to Anaconda | ||
workingDirectory: arrow/dev/tasks/conda-recipes | ||