Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appveyor config #33

Merged
merged 12 commits into from Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ before_install:
- conda config --set always_yes yes --set show_channel_urls true
- conda update -n base conda
- conda config --prepend channels conda-forge
- conda create -n TEST --strict-channel-priority python=$TRAVIS_PYTHON_VERSION --file requirements_dev.txt
- conda create -n TEST --strict-channel-priority python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements_dev.txt
- source activate TEST
- conda info --all

Expand Down
51 changes: 51 additions & 0 deletions appveyor.yml
@@ -0,0 +1,51 @@
environment:

CONDA_PATH: "C:\\Miniconda"

matrix:
- PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "3.7"

platform:
- 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:PYTHON_VERSION -eq '3.7')
{ $env:CONDA_PATH="$($env:CONDA_PATH)37" }
- ps: if($env:PLATFORM -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 show_channel_urls true
- cmd: conda update -n base conda
- cmd: conda config --prepend channels conda-forge
- cmd: conda create -n TEST --strict-channel-priority python=%PYTHON_VERSION% --file requirements_dev.txt
- cmd: activate TEST
# cartopy needs to install separately
- cmd: conda install -c conda-forge cartopy
- cmd: conda info --all
- cmd: python setup.py install

build: off

test_script:
# Put your test command here.
# If you don't need to build C extensions on 64-bit Python 3.3 or 3.4,
# you can remove "build.cmd" from the front of the command, as it's
# only needed to support those cases.
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
- cmd: python.exe setup.py bdist_wheel

artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
name: packages

#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.
1 change: 0 additions & 1 deletion requirements_dev.txt
@@ -1,6 +1,5 @@
cython
metpy>=0.8
cartopy>=0.15
pyshp!=2.0.0, !=2.0.1
pyresample
matplotlib>=2.2
Expand Down