Skip to content

Commit 5a6cc56

Browse files
committed
Change build command for appveyor
This is due to an error that was occurring with scipy. The solution is to use a conda environment as described in http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
1 parent dc0fb13 commit 5a6cc56

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

appveyor.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
environment:
22
matrix:
3-
- PYTHON: "C:\\Python35"
4-
- PYTHON: "C:\\Python36"
3+
- PYTHON_VERSION: "3.5"
4+
MINICONDA: "C:\\Miniconda35"
5+
- PYTHON_VERSION: "3.6"
6+
MINICONDA: "C:\\Miniconda36"
57
install:
6-
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
8+
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
9+
- "conda config --set always_yes yes --set changeps1 no"
10+
- "conda update -q conda"
11+
- "conda create -q -n test-environment python=%PYTHON_VERSION% scipy>=0.19.0 numpy>=1.9.2"
12+
- "activate test-environment"
13+
- "python -m pip install -r requirements.txt"
714
build: off
815
test_script:
9-
- "%PYTHON%\\python.exe -m unittest discover"
10-
- "%PYTHON%\\python.exe doctests.py"
11-
- "%PYTHON%\\python.exe setup.py install"
16+
- "python -m unittest discover"
17+
- "python doctests.py"
18+
- "python setup.py install"

0 commit comments

Comments
 (0)