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 14, 2016
1 parent f6619b5 commit 90c047c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

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

test_script:
- ps: if($env:PYTHON_VERSION -eq '2.7')
{ sed -i -e s/python3/python2/ examples\notebooks\*.ipynb }
- cmd: py.test --cov=siphon
- cmd: find examples\notebooks\ -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=120 --inplace

0 comments on commit 90c047c

Please sign in to comment.