Skip to content

Commit

Permalink
[2.0.0]Add CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-canux committed Mar 16, 2017
1 parent deacce6 commit d40a5d8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
@@ -0,0 +1,18 @@
language: python
python:
- 2.7

before_install:
- pip install -U pip
- pip install -U setuptools

install:
- pip install -r requirements.txt
- pip install coveralls

script:
- coverage run --source=wechat_api setup.py test
- coverage run --source=enterprise_api setup.py test

after_success:
- coveralls
7 changes: 7 additions & 0 deletions README.rst
Expand Up @@ -5,6 +5,13 @@
.. image:: https://img.shields.io/pypi/dm/django-wechat-api.svg?style=plastic
:target: https://pypi.python.org/pypi/django-wechat-api/

.. image:: https://travis-ci.org/crazy-canux/django-wechat-api.svg?branch=master
:target: https://travis-ci.org/crazy-canux/django-wechat-api

.. image:: https://coveralls.io/repos/github/crazy-canux/django-wechat-api/badge.svg?branch=master
:target: https://coveralls.io/github/crazy-canux/django-wechat-api?branch=master


==============
Django Project
==============
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
@@ -1,2 +1,6 @@
Django==1.8.2
argparse==1.2.1
lxml==2.3.4
pycrypto==2.6
requests==2.11.1
wsgiref==0.1.2
5 changes: 1 addition & 4 deletions setup.py
Expand Up @@ -36,10 +36,7 @@ def read(readme):
import pypandoc
return pypandoc.convert(readme, 'rst')

INSTALL_REQUIRES = [
'Django==1.8.2',
'requests==2.11.1',
]
INSTALL_REQUIRES = []

setup(
name=NAME,
Expand Down

0 comments on commit d40a5d8

Please sign in to comment.