-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
43 lines (33 loc) · 1.39 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
# thanks a lot to the Nansat project (https://github.com/nansencenter/nansat) from which this file was adapted
environment:
matrix:
- TARGET_ARCH: x64
CONDA_PY: 37
CONDA_INSTALL_LOCN: C:\Miniconda37-x64
GDAL_DATA: C:\Miniconda37-x64\Library\share\gdal
PROJECT_DIR: C:\projects\spatialist
platform:
- x64
install:
# Cygwin's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- rmdir C:\cygwin /s /q
# activate conda
- call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
# If there is a newer build queued for the same PR, cancel this one.
- appveyor DownloadFile https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py
- python ff_ci_pr_build.py -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
- del ff_ci_pr_build.py
# update conda
- conda update --yes --quiet conda
- set PYTHONUNBUFFERED=1
# configure the conda environment
- conda create --yes --name sp_test python=3.8 coveralls coverage pytest
- conda env update --name sp_test --file environment.yml
- conda activate sp_test
- pip install .
# Skip .NET project specific build phase.
build: false
test_script:
- coverage run --source spatialist/ -m pytest
#after_test:
# - coveralls