Skip to content

Commit 9f48c29

Browse files
authored
Merge pull request #23 from ocefpaf/appveyor
add windows testing
2 parents 3707ebb + eaf86a7 commit 9f48c29

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

appveyor.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
environment:
2+
matrix:
3+
- TARGET_ARCH: x64
4+
CONDA_PY: 27
5+
CONDA_INSTALL_LOCN: C:\\Miniconda-x64
6+
7+
- TARGET_ARCH: x64
8+
CONDA_PY: 36
9+
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
10+
11+
platform:
12+
- x64
13+
14+
install:
15+
# If there is a newer build queued for the same PR, cancel this one.
16+
# The AppVeyor 'rollout builds' option is supposed to serve the same
17+
# purpose but it is problematic because it tends to cancel builds pushed
18+
# directly to master instead of just PR builds (or the converse).
19+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
20+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
21+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
22+
throw "There are newer queued builds for this pull request, failing early." }
23+
24+
# Add path, activate `conda` and update conda.
25+
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
26+
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
27+
- cmd: conda.exe config --set always_yes yes --set changeps1 no --set show_channel_urls true
28+
- cmd: conda.exe update conda
29+
30+
- cmd: set PYTHONUNBUFFERED=1
31+
32+
- cmd: conda.exe config --add channels conda-forge
33+
- cmd: conda.exe install conda-build
34+
- cmd: conda.exe info
35+
36+
# Skip .NET project specific build phase.
37+
build: off
38+
39+
test_script:
40+
- "conda build conda.recipe"

conda.recipe/meta.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package:
2+
name: sensorml2iso
3+
version: {{ GIT_DESCRIBE_TAG|replace("v","") }}
4+
5+
source:
6+
path: ../
7+
8+
build:
9+
script: python -m pip install --no-deps --ignore-installed .
10+
entry_points:
11+
- sensorml2iso = sensorml2iso.command_line:main
12+
13+
requirements:
14+
build:
15+
- python
16+
- pip
17+
run:
18+
- python
19+
- owslib
20+
- geopandas
21+
- jinja2
22+
- lxml
23+
- numpy
24+
- pandas
25+
- pyoos >=0.8.3
26+
- shapely
27+
28+
test:
29+
requires:
30+
- pytest
31+
imports:
32+
- sensorml2iso
33+
commands:
34+
- sensorml2iso -h
35+
- sensorml2iso -s http://data.nanoos.org/52nsos/sos/kvp
36+
- py.test -s -rxs -v sensorml2iso
37+
38+
about:
39+
home: https://github.com/ioos/sensorml2iso
40+
license: MIT
41+
license_file: LICENSE
42+
summary: 'Query an IOOS SOS service for active sensors and output ISO 19115-2-compliant xml.'
43+
44+
extra:
45+
recipe-maintainers:
46+
- mwengren
47+
- ocefpaf

0 commit comments

Comments
 (0)