You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.4 KiB
107 lines
3.4 KiB
# With infos from |
|
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/ |
|
# https://packaging.python.org/en/latest/appveyor/ |
|
# https://github.com/rmcgibbo/python-appveyor-conda-example |
|
|
|
# Backslashes in quotes need to be escaped: \ -> "\\" |
|
|
|
matrix: |
|
fast_finish: true # immediately finish build once one of the jobs fails. |
|
|
|
environment: |
|
global: |
|
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the |
|
# /E:ON and /V:ON options are not enabled in the batch script intepreter |
|
# See: http://stackoverflow.com/a/13751649/163740 |
|
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd" |
|
|
|
matrix: |
|
|
|
# disable python 3.4 ATM |
|
#- PYTHON: "C:\\Python34_64" |
|
# PYTHON_VERSION: "3.4" |
|
# PYTHON_ARCH: "64" |
|
# CONDA_PY: "34" |
|
# CONDA_NPY: "19" |
|
|
|
- PYTHON: "C:\\Python27_64" |
|
PYTHON_VERSION: "2.7" |
|
PYTHON_ARCH: "64" |
|
CONDA_PY: "27" |
|
CONDA_NPY: "110" |
|
|
|
- PYTHON: "C:\\Python35_64" |
|
PYTHON_VERSION: "3.5" |
|
PYTHON_ARCH: "64" |
|
CONDA_PY: "35" |
|
CONDA_NPY: "111" |
|
|
|
|
|
# We always use a 64-bit machine, but can build x86 distributions |
|
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV). |
|
platform: |
|
- x64 |
|
|
|
# all our python builds have to happen in tests_script... |
|
build: false |
|
|
|
init: |
|
- "ECHO %PYTHON_VERSION% %PYTHON%" |
|
|
|
install: |
|
# cancel older builds for the same PR |
|
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` |
|
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` |
|
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` |
|
throw "There are newer queued builds for this pull request, failing early." } |
|
|
|
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit) |
|
# updates conda & installs: conda-build jinja2 anaconda-client |
|
- powershell .\ci\install.ps1 |
|
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% |
|
- echo "install" |
|
- cd |
|
- ls -ltr |
|
- git tag --sort v:refname |
|
|
|
# this can conflict with git |
|
- cmd: rmdir C:\cygwin /s /q |
|
|
|
# install our build environment |
|
- cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false |
|
- cmd: conda update -q conda |
|
|
|
# fix conda-build version |
|
# https://github.com/conda/conda-build/issues/1001 |
|
# disabling 3.4 as windows complains upon compiling byte |
|
# code |
|
|
|
- cmd: conda install conda-build=1.21.7 |
|
- cmd: conda config --set ssl_verify false |
|
|
|
# add the pandas channel *before* defaults to have defaults take priority |
|
- cmd: conda config --add channels pandas |
|
- cmd: conda config --remove channels defaults |
|
- cmd: conda config --add channels defaults |
|
- cmd: conda install anaconda-client |
|
|
|
# this is now the downloaded conda... |
|
- cmd: conda info -a |
|
|
|
# build em using the local source checkout in the correct windows env |
|
- cmd: '%CMD_IN_ENV% conda build ci\appveyor.recipe -q' |
|
|
|
# create our env |
|
- cmd: conda create -q -n pandas python=%PYTHON_VERSION% nose |
|
- cmd: activate pandas |
|
- SET REQ=ci\requirements-%PYTHON_VERSION%-%PYTHON_ARCH%.run |
|
- cmd: echo "installing requirements from %REQ%" |
|
- cmd: conda install -n pandas -q --file=%REQ% |
|
- ps: conda install -n pandas (conda build ci\appveyor.recipe -q --output) |
|
|
|
test_script: |
|
# tests |
|
- cd \ |
|
- cmd: activate pandas |
|
- cmd: conda list |
|
- cmd: nosetests --exe -A "not slow and not network and not disabled" pandas
|
|
|