-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
54 lines (47 loc) · 1.44 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
43
44
45
46
47
48
49
50
51
52
53
54
## TIP: multiLines in Appveoyr:
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over
#
build: false
version: '0.0.0+build.{build}'
clone_depth: 20
environment:
GIT_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
init:
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH%
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
- ECHO %PATH%
- python --version
install:
- python -m pip install --upgrade setuptools pip wheel
- |
git config --global user.email "[email protected]"
git config --global user.name "Appveyor Tester"
test_script:
- pip install -q -r requirements_dev.txt
- IF "%PYTHON_VERSION%" == "3.6" (
pip install -q -r requirements.txt
)
## Build and smoketest WHEELs
#
# Only $CWD/setup.cfg is read
- sed -i 's/polyversion_check_bdist_enabled = true/polyversion_check_bdist_enabled = false/' setup.cfg
- python pvlib/setup.py build bdist_wheel
## Install sources and PYTEST both pvlib & pvcmd.
#
- pip install -e pvlib && pytest -v ./pvlib
- IF "%PYTHON_VERSION%" == "3.6" (
pip install -e . && pytest -v ./pvcmd
)