Skip to content

Commit

Permalink
Add config for running on AppVeyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Mar 15, 2016
1 parent 74a0be0 commit ce17f07
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
clone_depth: 5

environment:

CONDA_PATH: "C:\\Miniconda"

matrix:
- PYTHON_VERSION: "2.7"
#- PYTHON_VERSION: "3.4"
- PYTHON_VERSION: "3.5"

platform:
- x86
- x64

install:
# Use the pre-installed Miniconda for the desired arch
- ps: if($env:PYTHON_VERSION -eq '3.5')
{ $env:CONDA_PATH="$($env:CONDA_PATH)35" }
- ps: if($env:TARGET_ARCH -eq 'x64')
{ $env:CONDA_PATH="$($env:CONDA_PATH)-x64" }
- ps: $env:path="$($env:CONDA_PATH);$($env:CONDA_PATH)\Scripts;$($env:CONDA_PATH)\Library\bin;C:\cygwin\bin;$($env:PATH)"
- cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda update -q conda
# Useful for debugging any issues with conda
- cmd: conda info -a
- cmd: sed -i -e s/python=3/python=%PYTHON_VERSION%/ environment.yml
- cmd: conda env create -q -f environment.yml
- cmd: activate devel
- cmd: python --version
- cmd: conda list
- cmd: if %PYTHON_VERSION% == 2.7 conda install enum34
- cmd: pip install ".[test]"

# Skip .NET project specific build phase.
build: off

test_script:
- cmd: if %PYTHON_VERSION% == 2.7 find examples\notebooks -name "*.ipynb" -exec sed -i -e s/python3/python2/ {} ;
- cmd: python setup.py test --addopts --cov=siphon
- cmd: find examples\notebooks\ -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=120 --inplace

0 comments on commit ce17f07

Please sign in to comment.