-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
47 lines (43 loc) · 1.73 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
#-------------------------------------------------------------------------------
# appveyor.yml
# Author: Alan D. Snow, 2017
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#System specifications for Appveyor
#-------------------------------------------------------------------------------
#FROM: http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
# and on: https://github.com/DynamicDevices/mono/blob/master/appveyor.yml
environment:
matrix:
- PYTHON_VERSION: "2.7"
MINICONDA: "C:\\Miniconda-x64"
- PYTHON_VERSION: "3.5"
MINICONDA: "C:\\Miniconda3-x64"
- PYTHON_VERSION: "3.6"
MINICONDA: "C:\\Miniconda3-x64"
matrix:
allow_failures:
- PYTHON_VERSION: "3.5"
- PYTHON_VERSION: "3.6"
install:
- 'SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%'
- conda config --set always_yes yes
- conda update -q conda python
#-----------------------------------------------------------------------------
# Create conda environment for gsshapy
#-----------------------------------------------------------------------------
- conda create -n gsshapy python=%PYTHON_VERSION%
- activate gsshapy
- conda config --add channels conda-forge
- conda env update -n gsshapy -f conda_env.yml
# restart environment
- deactivate gsshapy
- activate gsshapy
#-------------------------------------------------------------------------------
# Install gsshapy
#-------------------------------------------------------------------------------
- 'cd %APPVEYOR_BUILD_FOLDER%'
- pip install -e .[tests]
build: false
test_script:
- py.test --cov-report term-missing --cov=gsshapy