Enable CI (#28)

This commit is contained in:
Sergey Petrov
2017-01-25 17:39:04 +03:00
committed by GitHub
parent 701b587c32
commit 9e2fd44a30
5 changed files with 45 additions and 1 deletions
+3
View File
@@ -67,3 +67,6 @@ target/
# Virtualenv
venv/
# Tox
.tox/
+16
View File
@@ -0,0 +1,16 @@
language: python
cache: pip
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
install:
- pip install .
- pip install -r requirements-dev.txt
script:
- nosetests
notifications:
email: false
slack:
secure: hqbqt/zePs9ognCQT/IlLmRBpTxudSBR88GK/Qu0GOJZhuBsFvUbHaDKkTsIPYoLsZPKYss0tpKsRQJG0GlO8da7d/raR4gSNI5y0ypso5ttN+OgLf4pa1bUwz0Q39aDFcuSG9aZEU134hk19KYFxz3h+gLI5C51mnnm2qOK1goq+ZNTtIz42y7kxRnF4opExLS9+ZTUxV2eA5lEvgoju6PVXfu1CkzPZKZt3XXnl3G2LGo4pitemiOIBSiVHLuakLmZ5z7IyVTbsB2Sh+2HoTdvGpdxNJcy0wDbvnZ0ZE3otrCkggaTQJ8uMEygsx8JafmDCC3sAosCqftj+SG9bG9LSmypizmipNEClSq5iKEtniGhoR1Imzbk7b5yth6q3TETY/fYFt9hATDBbn+IS0ZD0kJaVfN5Tgi6fiFtKbHPl9XxdLDffPDv5/AvSlY0CaDpTeN8j3YkMHSyuSN+u+qyai5KTWi4b2WZDY5MklTO6/3Kems/rYatCYjthzW94Di2rNDxnESeUmWy94npRxYg+HBVlVO5kG/ujHwwT5jU6icOcIJrtQAnJfTApyrEvqYtHUw0WATq/aTSYDEwQvJtV9xPX1R3XuDSZ+MBXobo+nplStkMdo0FmHcYrwi0oAohnmMu0jFMuByoY8crawrKB3EC/0/BHJvRs6QTWSE=
+13
View File
@@ -1,4 +1,10 @@
# PyAPNs2
[![PyPI version](https://img.shields.io/pypi/v/apns2.svg)](https://pypi.python.org/pypi/apns2)
[![PyPI version](https://img.shields.io/pypi/pyversions/apns2.svg)](https://pypi.python.org/pypi/apns2)
[![Build Status](https://img.shields.io/travis/Pr0Ger/PyAPNs2.svg)](https://travis-ci.org/Pr0Ger/PyAPNs2)
[![Code Climate](https://img.shields.io/codeclimate/github/Pr0Ger/PyAPNs2.svg)](https://codeclimate.com/github/Pr0Ger/PyAPNs2)
Python library for interacting with the Apple Push Notification service (APNs) via HTTP/2 protocol
## Installation
@@ -42,6 +48,13 @@ pip install -r requirements-dev.txt
python -m unittest discover test
```
You can use `tox` for running tests with all supported Python versions:
```shell
pyenv install 2.7.13 && pyenv install 3.3.6 && pyenv install 3.4.6 && pyenv install 3.5.3 & pyenv install 3.6.0
pyenv local 3.6.0 3.5.3 3.4.6 3.3.6 2.7.13
tox
```
To run the linter:
```shell
pip install pylint
+2 -1
View File
@@ -22,9 +22,10 @@ setup(
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
'Topic :: Software Development :: Libraries',
],
description='A python library for interacting with the Apple Push Notification Service via HTTP/2 protocol'
+11
View File
@@ -0,0 +1,11 @@
[tox]
envlist = py27, py34, py35, py36
[testenv]
commands = nosetests []
deps =
nose
py27: mock
usedevelop=True