Commit 163d5df0 by Gabe Mulley

add support for travis ci

parent f944f499
[run] [run]
branch = True branch = True
include = eventtracking* include = eventtracking*
omit = eventtracking/*tests*
language: python
python:
- "2.7"
install:
- "pip install -r test-requirements.txt --use-mirrors"
- "python setup.py install"
script:
- coverage run -m nose
- coverage report --show-missing --fail-under=95
- pep8
- pylint --reports=y eventtracking
...@@ -5,6 +5,9 @@ __ http://code.edx.org/ ...@@ -5,6 +5,9 @@ __ http://code.edx.org/
event-tracking event-tracking
============== ==============
.. image:: https://api.travis-ci.org/edx/event-tracking.png?branch=master
:target: https://travis-ci.org/edx/event-tracking
This is a system for tracking events. It is designed to support pluggable This is a system for tracking events. It is designed to support pluggable
backends for persisting the event data. When the application emits an event backends for persisting the event data. When the application emits an event
each backend will be given an opportunity to save the event to stable storage. each backend will be given an opportunity to save the event to stable storage.
......
"""A simple event tracking library"""
"""Django models will go here"""
"""Required so that we can import classes defined in the tests"""
"""Django urls will go here"""
"""Django views will go here"""
...@@ -57,7 +57,9 @@ disable= ...@@ -57,7 +57,9 @@ disable=
# R0912: Too many branches # R0912: Too many branches
# R0913: Too many arguments # R0913: Too many arguments
# R0914: Too many local variables # R0914: Too many local variables
C0302,R0201,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914 C0302,R0201,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,
#W0511: TODOs etc
W0511
[REPORTS] [REPORTS]
......
# 3rd-party needs
Django >= 1.4, < 1.5 Django >= 1.4, < 1.5
pymongo==2.4.1 pymongo==2.4.1
# For Tests
mock
# For docs
sphinx
...@@ -2,6 +2,8 @@ import os ...@@ -2,6 +2,8 @@ import os
from setuptools import setup from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
REQUIREMENTS = [line.strip() for line in
open("requirements.txt").readlines()]
# allow setup.py to be run from any path # allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
...@@ -14,6 +16,7 @@ setup( ...@@ -14,6 +16,7 @@ setup(
license='AGPLv3 License', license='AGPLv3 License',
description='A simple event tracking system.', description='A simple event tracking system.',
long_description=README, long_description=README,
install_requires=REQUIREMENTS,
url='http://code.edx.org/', url='http://code.edx.org/',
classifiers=[ classifiers=[
'Development Status :: 2 - Pre-Alpha', 'Development Status :: 2 - Pre-Alpha',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment