Skip to content

Commit

Permalink
Merge 053fab2 into 1a12c41
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-pipelines[bot] authored Sep 19, 2018
2 parents 1a12c41 + 053fab2 commit 706b045
Show file tree
Hide file tree
Showing 13 changed files with 340 additions and 91 deletions.
91 changes: 0 additions & 91 deletions appveyor.yml

This file was deleted.

25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Adapted from https://github.com/numba/numba/blob/master/azure-pipelines.yml
jobs:
# Mac and Linux could potentially use the same template
# except it isn't clear how to use a different build matrix
# for each, so for now they are separate
- template: ci/azure/macos.yml
parameters:
name: macOS
vmImage: xcode9-macos10.13
# - template: ci/azure/linux.yml
# parameters:
# name: Linux
# vmImage: ubuntu-16.04

# Windows Python 2.7 needs VC 9.0 installed, and not sure
# how to make that a conditional task, so for now these are
# separate templates as well
- template: ci/azure/windows.yml
parameters:
name: Windows
vmImage: vs2017-win2017
- template: ci/azure/windows-py27.yml
parameters:
name: WindowsPy27
vmImage: vs2017-win2017
28 changes: 28 additions & 0 deletions ci/azure-macos-35.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pandas
channels:
- defaults
dependencies:
- beautifulsoup4
- bottleneck
- cython>=0.28.2
- html5lib
- jinja2
- lxml
- matplotlib
- nomkl
- numexpr
- numpy=1.10.4
- openpyxl=2.5.5
- pytables
- python=3.5*
- pytz
- xarray
- xlrd
- xlsxwriter
- xlwt
# universal
- pytest
- pytest-xdist
- pip:
- python-dateutil==2.5.3
- hypothesis>=3.58.0
31 changes: 31 additions & 0 deletions ci/azure-windows-27.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pandas
channels:
- defaults
- conda-forge
dependencies:
- beautifulsoup4
- bottleneck
- dateutil
- gcsfs
- html5lib
- jinja2=2.8
- lxml
- matplotlib
- numexpr
- numpy=1.12*
- openpyxl=2.5.5
- pytables
- python=2.7.*
- pytz
- s3fs
- scipy
- sqlalchemy
- xlrd
- xlsxwriter
- xlwt
# universal
- cython>=0.28.2
- pytest
- pytest-xdist
- moto
- hypothesis>=3.58.0
28 changes: 28 additions & 0 deletions ci/azure-windows-36.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pandas
channels:
- defaults
- conda-forge
dependencies:
- blosc
- bottleneck
- fastparquet
- feather-format
- matplotlib
- numexpr
- numpy=1.14*
- openpyxl=2.5.5
- pyarrow
- pytables
- python-dateutil
- python=3.6.*
- pytz
- scipy
- thrift=0.10*
- xlrd
- xlsxwriter
- xlwt
# universal
- cython>=0.28.2
- pytest
- pytest-xdist
- hypothesis>=3.58.0
39 changes: 39 additions & 0 deletions ci/azure/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
parameters:
name: ''
vmImage: ''

jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
maxParallel: 11
matrix:
py35_np_110:
ENV_FILE: ci/azure-macos-35.yml
CONDA_PY: "35"
CONDA_ENV: pandas
TEST_ARGS: "--skip-slow --skip-network"

steps:
- script: |
if [ "$(uname)" == "Linux" ]; then sudo apt-get install -y libc6-dev-i386; fi
echo "Installing Miniconda"
ci/incremental/install_miniconda.sh
export PATH=$HOME/miniconda3/bin:$PATH
echo "Setting up Conda environment"
ci/incremental/setup_conda_environment.sh
displayName: 'Before Install'
- script: |
export PATH=$HOME/miniconda3/bin:$PATH
ci/incremental/build.sh
displayName: 'Build'
- script: |
export PATH=$HOME/miniconda3/bin:$PATH
ci/script_single.sh
ci/script_multi.sh
echo "[Test done]"
displayName: 'Test'
- script: |
export PATH=$HOME/miniconda3/bin:$PATH
source activate pandas && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
41 changes: 41 additions & 0 deletions ci/azure/windows-py27.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
parameters:
name: ''
vmImage: ''

jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
maxParallel: 11
matrix:
py36_np14:
ENV_FILE: ci/azure-windows-27.yml
CONDA_PY: "27"
CONDA_ENV: pandas

steps:
- task: CondaEnvironment@1
inputs:
updateConda: no
packageSpecs: ''

# Need to install VC 9.0 only for Python 2.7
# Once we understand how to do tasks conditional on build matrix variables
# we could merge this into azure-windows.yml
- powershell: |
$wc = New-Object net.webclient
$wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi")
Start-Process "VCForPython27.msi" /qn -Wait
displayName: 'Install VC 9.0'
- script: |
ci\\incremental\\setup_conda_environment.cmd
displayName: 'Before Install'
- script: |
ci\\incremental\\build.cmd
displayName: 'Build'
- script: |
call activate %CONDA_ENV%
pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %*
displayName: 'Test'
32 changes: 32 additions & 0 deletions ci/azure/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
parameters:
name: ''
vmImage: ''

jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
maxParallel: 11
matrix:
py36_np14:
ENV_FILE: ci/azure-windows-36.yml
CONDA_PY: "36"
CONDA_ENV: pandas

steps:
- task: CondaEnvironment@1
inputs:
updateConda: no
packageSpecs: ''

- script: |
ci\\incremental\\setup_conda_environment.cmd
displayName: 'Before Install'
- script: |
ci\\incremental\\build.cmd
displayName: 'Build'
- script: |
call activate %CONDA_ENV%
pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %*
displayName: 'Test'
10 changes: 10 additions & 0 deletions ci/incremental/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/build.cmd
call activate %CONDA_ENV%

@rem Build numba extensions without silencing compile errors
python setup.py build_ext -q --inplace

@rem Install pandas locally
python -m pip install -e .

if %errorlevel% neq 0 exit /b %errorlevel%
18 changes: 18 additions & 0 deletions ci/incremental/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

source activate $CONDA_ENV

# Make sure any error below is reported as such
set -v -e

echo "[building extensions]"
python setup.py build_ext -q --inplace
python -m pip install -e .

echo
echo "[show environment]"
conda list

echo
echo "[done]"
exit 0
19 changes: 19 additions & 0 deletions ci/incremental/install_miniconda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -v -e

# Install Miniconda
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
if [[ "$BITS32" == "yes" ]]; then
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86.sh -O miniconda.sh
else
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
fi
elif [[ "$unamestr" == 'Darwin' ]]; then
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
else
echo Error
fi
chmod +x miniconda.sh
./miniconda.sh -b
21 changes: 21 additions & 0 deletions ci/incremental/setup_conda_environment.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/setup_conda_environment.cmd
@rem The cmd /C hack circumvents a regression where conda installs a conda.bat
@rem script in non-root environments.
set CONDA_INSTALL=cmd /C conda install -q -y
set PIP_INSTALL=pip install -q

@echo on

@rem Deactivate any environment
call deactivate
@rem Display root environment (for debugging)
conda list
@rem Clean up any left-over from a previous build
conda remove --all -q -y -n %CONDA_ENV%
@rem Scipy, CFFI, jinja2 and IPython are optional dependencies, but exercised in the test suite
conda env create -n %CONDA_ENV% --file=ci\azure-windows-%CONDA_PY%.yaml

call activate %CONDA_ENV%
conda list

if %errorlevel% neq 0 exit /b %errorlevel%
Loading

0 comments on commit 706b045

Please sign in to comment.