forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
55 lines (46 loc) · 1.71 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
clone_depth: 5
environment:
CONDA_PATH: "C:\\Miniconda"
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.6"
platform:
- x86
- x64
install:
# Use the pre-installed Miniconda for the desired arch
- ps: if($env:PYTHON_VERSION -eq '3.6')
{ $env:CONDA_PATH="$($env:CONDA_PATH)36" }
- ps: if($env:TARGET_ARCH -eq 'x64')
{ $env:CONDA_PATH="$($env:CONDA_PATH)-x64" }
- ps: $env:path="$($env:CONDA_PATH);$($env:CONDA_PATH)\Scripts;$($env:CONDA_PATH)\Library\bin;C:\cygwin\bin;$($env:PATH)"
- cmd: conda config --set always_yes yes --set changeps1 no
# Useful for debugging any issues with conda
- cmd: conda info -a
- cmd: sed -i -e s/python=3/python=%PYTHON_VERSION%/ environment.yml
- cmd: conda env create -q -f environment.yml
- cmd: activate devel
- cmd: python --version
- cmd: conda list
- cmd: if %PYTHON_VERSION% == 2.7 conda install -q enum34
- cmd: pip install ".[test]"
- cmd: flake8 --version
# Skip .NET project specific build phase.
build: off
test_script:
- cmd: set TEST_DATA_DIR=%APPVEYOR_BUILD_FOLDER%\\testdata
- cmd: python setup.py test --addopts "-s --junitxml=tests.xml --flake8 --mpl --cov=metpy"
# - cmd: cd docs
# - cmd: make html
# - cmd: cd ..
on_finish:
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
- cmd: pip install codecov
- cmd: codecov -e PYTHON_VERSION PLATFORM
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/0ea592876f591013ca9f
on_build_success: true
on_build_failure: true
on_build_status_changed: true