File: .appveyor.yml

package info (click to toggle)
python-cartopy 0.18.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,204 kB
  • sloc: python: 15,593; makefile: 160; javascript: 65; sh: 6
file content (48 lines) | stat: -rw-r--r-- 1,639 bytes parent folder | download
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
environment:
    matrix:
        - PYTHON_VERSION: "3.6"
          CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
          PACKAGES: "cython numpy matplotlib-base proj pykdtree scipy"
        - PYTHON_VERSION: "2.7"
          CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"
          PACKAGES: "cython=0.28 numpy=1.10.0 matplotlib=1.5.1 nose proj4=4.9.1 scipy=0.16.0 mock msinttypes futures"

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%==2.7 conda config --set restore_free_channel true
  - if %PYTHON_VERSION%==3.6 conda update conda --yes
  - set ENV_NAME=test-environment
  - set PACKAGES=%PACKAGES% pillow pytest filelock pep8 pyshp shapely six requests pyepsg owslib
  - 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