forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
46 lines (40 loc) · 1.43 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
environment:
matrix:
- PYTHON_VERSION: "3.6"
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
PACKAGES: "cython numpy matplotlib-base proj pykdtree scipy"
install:
# Install miniconda
# -----------------
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
# Create the testing environment
# ------------------------------
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls yes
- conda config --add channels conda-forge
- conda config --add channels conda-forge/label/testing
- if %PYTHON_VERSION%==3.6 conda update conda --yes
- set ENV_NAME=test-environment
- set PACKAGES=%PACKAGES% flufl.lock owslib pep8 pillow pyepsg pyshp pytest
- set PACKAGES=%PACKAGES% requests setuptools_scm setuptools_scm_git_archive
- set PACKAGES=%PACKAGES% shapely
- conda create -n %ENV_NAME% python=%PYTHON_VERSION% %PACKAGES%
- activate %ENV_NAME%
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
# Conda debug
# -----------
- conda list -n %ENV_NAME%
- conda list -n %ENV_NAME% --explicit
- conda info -a
build_script:
# Install cartopy
# ---------------
- pip install --no-deps .
- python -c "import cartopy; print('Version ', cartopy.__version__)"
test_script:
- set MPLBACKEND=Agg
- pytest --pyargs cartopy
artifacts:
- path: cartopy_test_output
name: cartopy_test_output
type: zip