forked from johntruckenbrodt/pyroSAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (43 loc) · 1.87 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
48
49
50
51
52
53
54
55
56
57
# 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: 36
CONDA_INSTALL_LOCN: C:\Miniconda3-x64
GDAL_DATA: C:\Miniconda3-x64\Library\share\gdal
PROJECT_DIR: C:\projects\pyrosar
SNAP_INSTALL: C:\projects\snap
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
# Add our channels.
- conda config --set show_channel_urls true
- conda config --remove channels defaults
- conda config --add channels defaults
- conda config --add channels conda-forge
# install ESA SNAP
- appveyor DownloadFile https://step.esa.int/downloads/7.0/installers/esa-snap_sentinel_windows-x64_7_0.exe
- esa-snap_sentinel_windows-x64_7_0.exe -q -dir %SNAP_INSTALL%
- set PATH=%PATH%;%SNAP_INSTALL%\bin
- echo %PATH%
# Configure the VM.
- conda install -n root --quiet --yes gdal swig
- python -m pip install --upgrade pip
- python -m pip install -r requirements-dev.txt
- python -m pip install coveralls coverage
- python setup.py install
# Skip .NET project specific build phase.
build: off
test_script:
- coverage run --source pyroSAR/ -m pytest