forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (43 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
clone_depth: 5
environment:
CONDA_PATH: "C:\\Miniconda"
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.4"
#- PYTHON_VERSION: "3.5"
platform:
- x86
- x64
install:
# Use the pre-installed Miniconda for the desired arch
- ps: if($env:PYTHON_VERSION -eq '3.5')
{ $env:CONDA_PATH="$($env:CONDA_PATH)35" }
- 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
# Avoid updating to conda 4.2 until conda-forge rebuilds: See conda-forge/hdf5-feedstock#41
- cmd: conda install -q conda==4.1
# 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: python -m ipykernel install --user --name devel
- 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: if %PYTHON_VERSION% == 2.7 find examples\notebooks -name "*.ipynb" -exec sed -i -e s/python3/python2/ {} ;
- cmd: python setup.py test --addopts "-s --junitxml=tests.xml --flake8 --mpl --cov=metpy"
- cmd: find examples\notebooks\ -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=200 --ExecutePreprocessor.kernel_name=devel --inplace
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