-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathappveyor.yml
66 lines (54 loc) · 1.98 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
version: develop-{build}
branches:
only:
- develop
environment:
global:
MINICONDA: "C:\\Miniconda"
matrix:
- PYTHON_VERSION: 2.7
# - PYTHON_VERSION: 3.4
install:
# Install miniconda using a powershell script.
# - "choco install -y miniconda"
- "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 create -q -n test-environment python=%PYTHON_VERSION%"
- conda config --add channels hydroffice
- conda config --add channels SciTools
- conda config --add channels osgeo
- conda config --add channels IOOS
- conda config --add channels aaren
- conda config --add channels noaa-orr-erd
- conda config --add channels diffpy
- activate test-environment
# Check that we have the expected version of Python
- "python --version"
# Install dependencies
- conda install -q h5py lxml numpy matplotlib pydap wxpython requests shapely proj4 geos cartopy setuptools gdal
- pip install --no-dependencies hydroffice.bag
- pip install pyinstaller
# Add to path the current folder
- "SET PYTHONPATH=%PYTHONPATH%;%CD%"
build_script:
- python setup.py build
test_script:
- "python -m unittest hdf_compass.array_model.test"
- "python -m unittest hdf_compass.asc_model.test"
- "python -m unittest hdf_compass.bag_model.test"
- "python -m unittest hdf_compass.filesystem_model.test"
- "python -m unittest hdf_compass.hdf5_model.test"
- "python -m unittest hdf_compass.opendap_model.test"
after_test:
# If tests are successful, create a whl package for the project.
- python setup.py bdist_wheel
# Freeze the application using PyInstaller
# - pyinstaller freeze/HDFCompass.1file.spec
# Show the content of the `dist` folder
- ps: ls dist
artifacts:
# Archive the generated wheel package and the frozen application in the ci.appveyor.com build report.
- path: dist\*