Skip to content

Fix appveyor builds #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 25 additions & 24 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
# CI on Windows via appveyor
# This file was based on pandas' and xarray's appveyor.yml
# This file was based on Olivier Grisel's python-appveyor-demo
# This file is based on MetPy's appveyor.yml

environment:

CONDA_PATH: "C:\\Miniconda"

matrix:
- PYTHON: "C:\\Python27-conda32"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.4"
#- PYTHON_VERSION: "3.5"

- PYTHON: "C:\\Python34-conda64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
platform:
- x86
- x64

install:
# Install miniconda Python
- "powershell ./ci/install_python.ps1"

# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# 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

# install depenencies
- "conda create -n test_env --yes --quiet python=%PYTHON_VERSION% pip numpy scipy=0.16.0 pandas nose pytz ephem numba"
- "activate test_env"
- "conda list"
- cmd: conda create -n test_env --yes --quiet python=%PYTHON_VERSION% pip numpy scipy=0.16.0 pandas nose pytest pytz ephem numba
- cmd: activate test_env
- cmd: python --version
- cmd: conda list

# install pvlib
- "python setup.py install"
- cmd: pip install -e .

build: false

test_script:
- "py.test -v pvlib"
- cmd: py.test -v pvlib
93 changes: 0 additions & 93 deletions ci/install_python.ps1

This file was deleted.

2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.4.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Other
~~~~~

* Switch to the py.test testing framework. (:issue:`204`)
* Reconfigure Appveyor CI builds and resolve an issue in which the command
line length was too long. (:issue:`207`)


Code Contributors
Expand Down