Skip to content

Commit

Permalink
Add osx tests and travis deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed May 21, 2018
1 parent 82d5544 commit 6270925
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 18 deletions.
54 changes: 38 additions & 16 deletions .travis.yml
@@ -1,24 +1,46 @@
language: python
python:
- '2.7'
- '3.6'
env:
global:
# Set defaults to avoid repeating in most cases
- PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
- NUMPY_VERSION=stable
- MAIN_CMD='python setup.py'
- CONDA_DEPENDENCIES='xarray dask toolz Cython pykdtree sphinx cartopy pillow matplotlib basemap pyyaml pyproj coveralls configobj coverage codecov'
- SETUP_XVFB=False
- EVENT_TYPE='push pull_request'
- SETUP_CMD='test'
- CONDA_CHANNELS='conda-forge'
global:
- PYTHON_VERSION=$PYTHON_VERSION
- NUMPY_VERSION=stable
- MAIN_CMD='python setup.py'
- CONDA_DEPENDENCIES='xarray dask toolz Cython pykdtree sphinx cartopy pillow matplotlib
basemap pyyaml pyproj coveralls configobj coverage codecov'
- SETUP_XVFB=False
- EVENT_TYPE='push pull_request'
- SETUP_CMD='test'
- CONDA_CHANNELS='conda-forge'
matrix:
include:
- env: PYTHON_VERSION=2.7
os: linux
- env: PYTHON_VERSION=2.7
os: osx
language: generic
- env: PYTHON_VERSION=3.6
os: linux
- env: PYTHON_VERSION=3.6
os: osx
language: generic
install:
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
script:
- coverage run --source=pyresample setup.py test && cd docs && mkdir doctest && sphinx-build -E -n -b doctest ./source ./doctest && cd ..
- coverage run --source=pyresample setup.py test && cd docs && mkdir doctest && sphinx-build
-E -n -b doctest ./source ./doctest && cd ..
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then coveralls; codecov; fi
deploy:
matrix:
- provider: pypi
user: dhoese
password:
secure: cnWXKNEvy9ggNw11czp1aUtBsuwM0V3x8tNyvo7zR1Wl8ktarTU6jTvD7PKpAyFT05rRSgi2K+jrHqsu4Xbo1rJNBsvqlHee7wCihfZOXOkwXJM6yjaQsf6e1TwA+JR4Sw/G1VLzzWufUTnKjEKSTvAka+GSo02MzyO6y5FXzc0=
distributions: sdist bdist_wheel
on:
tags: true
repo: pytroll/pyresample
password:
secure: efysRf+1NddbJF6lnDYMHRm+qKXROWOTzcP7A+GJ/BGlkpZHQjf5gmE50C+9yHYigRLdVFX/x0aymiNMD1TFiZgA6a05ko+oFqGdEWV1ix/H1c4goTcIwdR0QVxd6MDmZiyyvmfOBWlKBGKv8ojtXbF+y1fxv+ly1AEeVvn1mqY=
notifications:
slack: pytroll:96mNSYSI1dBjGyzVXkBT6qFt
2 changes: 0 additions & 2 deletions appveyor.yml
Expand Up @@ -3,8 +3,6 @@ environment:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
# Don't build pykdtree with openmp because it isn't supported in appveyor's compilers
USE_OMP: "0"
CONDA_DEPENDENCIES: "xarray dask toolz Cython pykdtree sphinx cartopy pillow matplotlib pyyaml pyproj coveralls configobj coverage"
CONDA_CHANNELS: "conda-forge"

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -113,6 +113,7 @@ def cythonize(extensions, **_ignore):
author_email='t.lavergne@met.no',
package_dir={'pyresample': 'pyresample'},
packages=find_packages(),
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
setup_requires=['numpy'],
install_requires=requirements,
extras_require=extras_require,
Expand Down

0 comments on commit 6270925

Please sign in to comment.