forked from pvlib/pvlib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (33 loc) · 1.21 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# CI on Windows via appveyor
# This file is based on MetPy's appveyor.yml
environment:
CONDA_PATH: "C:\\Miniconda"
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.6"
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:PYTHON_VERSION -eq '3.6')
{ $env:CONDA_PATH="$($env:CONDA_PATH)36" }
- 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
- cmd: conda create -n test_env --yes --quiet python=%PYTHON_VERSION% pip numpy scipy pandas nose pytest pytz ephem numba siphon -c conda-forge
- cmd: activate test_env
- cmd: python --version
- cmd: conda list
# install pvlib
- cmd: pip install -e .
build: false
test_script:
- cmd: py.test -v pvlib