forked from hydroffice/hyo2_soundspeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
71 lines (53 loc) · 1.59 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: 2021.0.{build}-{branch}
image: Visual Studio 2015
environment:
matrix:
- PYTHON_VERSION: 3.8
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
- PYTHON_VERSION: 3.6
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
- PYTHON_VERSION: 3.7
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
matrix:
allow_failures:
- PYTHON_VERSION: 3.6
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
- PYTHON_VERSION: 3.7
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
install:
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH%
# Install the build and runtime dependencies of the project.
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda config --add channels conda-forge
- conda create -q -n test-environment python=%PYTHON_VERSION%
- activate test-environment
# Check that we have the expected version of Python
- python --version
- pip install coveralls PyYAML pytest pytest-cov wheel
# for hyo2.abc
- conda install appdirs bidict cartopy "gdal<3.0.0" matplotlib-base numpy psutil pyproj
- pip install PySide2
# for hyo2.soundspeed
- conda install gsw netCDF4 pillow pyserial scipy
- pip install https://github.com/hydroffice/hyo2_abc/archive/master.zip
build: off
build_script:
# --no-deps because of pip not detecting the installed hyo2.abc
- pip install --no-deps .
- conda list --show-channel-urls
test: off
test_script:
- py.test --cov
- coverage report -m
- coveralls
after_test:
- python setup.py bdist_wheel
artifacts:
- path: dist\*