-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from pytroll/feature-cis
Add travis and appveyor test configs
- Loading branch information
Showing
12 changed files
with
292 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
language: python | ||
env: | ||
global: | ||
# Set defaults to avoid repeating in most cases | ||
- NUMPY_VERSION=stable | ||
- MAIN_CMD='python setup.py' | ||
- CONDA_DEPENDENCIES='sphinx pillow coveralls coverage codecov mock trollimage aggdraw pytest pytest-cov' | ||
- PIP_DEPENDENCIES='' | ||
- SETUP_XVFB=False | ||
- EVENT_TYPE='push pull_request' | ||
- SETUP_CMD='test' | ||
- CONDA_CHANNELS='conda-forge' | ||
matrix: | ||
include: | ||
- env: PYTHON_VERSION=2.7 | ||
os: linux | ||
language: generic | ||
- env: PYTHON_VERSION=2.7 | ||
os: osx | ||
language: generic | ||
- env: PYTHON_VERSION=3.6 | ||
os: linux | ||
language: generic | ||
- 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 | ||
# See https://github.com/conda/conda/issues/7626#issuecomment-412922028 | ||
- conda config --remove channels defaults | ||
- conda install -y $CONDA_DEPENDENCIES | ||
script: | ||
- pytest --cov=pydecorate test.py | ||
after_success: | ||
- if [[ $PYTHON_VERSION == 3.6 ]]; then coveralls; codecov; fi | ||
deploy: | ||
- provider: pypi | ||
user: dhoese | ||
password: | ||
secure: BpBu41whAVlAsWmfBBJ0sXod3tgqy5Wgy8j2Z5BthFt90l6JNKcyTJDYY4Zi7YzDruZtPDyBtFURI5NZTaFnFQKsxxG5f+n6dDZR7eQ5x/Nh3Zb+kdx42T8ZtGaJC0Q2QdjGdbulyFz8xQC/vGujEDbe+0dsSR9otampGUhvbdk= | ||
distributions: sdist bdist_wheel | ||
skip_existing: true | ||
on: | ||
tags: true | ||
repo: pytroll/pydecorate |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include docs/source * | ||
include docs/Makefile | ||
recursive-include pydecorate/fonts * | ||
recursive-include pydecorate/fonts * | ||
include LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pydecorate | ||
========== | ||
|
||
.. image:: https://travis-ci.org/pytroll/pydecorate.svg?branch=master | ||
:target: https://travis-ci.org/pytroll/pydecorate | ||
|
||
.. image:: https://ci.appveyor.com/api/projects/status/61r5wqu2j2ay07ns/branch/master?svg=true | ||
:target: https://ci.appveyor.com/project/pytroll/pydecorate/branch/master | ||
|
||
.. image:: https://coveralls.io/repos/github/pytroll/pydecorate/badge.svg?branch=master | ||
:target: https://coveralls.io/github/pytroll/pydecorate?branch=master | ||
|
||
Pydecorate is a package for decorating PIL images with logos, texts, and color | ||
scales. | ||
|
||
Originally created by Hrobjartur Thorsteinsson | ||
November 2013, from Norrkoping, Sweden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
environment: | ||
global: | ||
PYTHON: "C:\\conda" | ||
MINICONDA_VERSION: "latest" | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd" | ||
CONDA_DEPENDENCIES: "sphinx pillow coverage mock trollimage aggdraw pytest pytest-cov" | ||
PIP_DEPENDENCIES: "" | ||
CONDA_CHANNELS: "conda-forge" | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python27_64" | ||
PYTHON_VERSION: "2.7" | ||
PYTHON_ARCH: "64" | ||
NUMPY_VERSION: "stable" | ||
|
||
- PYTHON: "C:\\Python36_64" | ||
PYTHON_VERSION: "3.6" | ||
PYTHON_ARCH: "64" | ||
NUMPY_VERSION: "stable" | ||
|
||
install: | ||
- "git clone --depth 1 git://github.com/astropy/ci-helpers.git" | ||
- "powershell ci-helpers/appveyor/install-miniconda.ps1" | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
- "activate test" | ||
|
||
build: false # Not a C# project, build stuff at the test step instead. | ||
|
||
test_script: | ||
# Build the compiled extension and run the project tests | ||
- "%CMD_IN_ENV% pytest test.py" | ||
|
||
after_test: | ||
# If tests are successful, create a whl package for the project. | ||
- "%CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst" | ||
- ps: "ls dist" | ||
|
||
artifacts: | ||
# Archive the generated wheel package in the ci.appveyor.com build report. | ||
- path: dist\* | ||
|
||
#on_success: | ||
# - TODO: upload the content of dist/*.whl to a public wheelhouse | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ | |
""" | ||
""" | ||
|
||
__version__ = '0.1.0' | ||
__version__ = '0.2.0a0.dev0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.