Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with travis. #20

Merged
merged 9 commits into from
Jul 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
branch = True
source = silverberg
omit = silverberg/test*,silverberg/cassandra*
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: python

python:
- 2.6
- 2.7
- pypy

matrix:
allow_failures:
- python: 2.6

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

script:
- make lint
- coverage run `which trial` silverberg

after_success:
- coveralls
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ unit:
PYTHONPATH=".:${PYTHONPATH}" trial --random 0 ${UNITTESTS}

coverage:
PYTHONPATH=".:${PYTHONPATH}" coverage run --source=${CODEDIR} --branch `which trial` ${CODEDIR}/test; coverage html -d _trial_coverage --omit="${CODEDIR}/test/*"
PYTHONPATH=".:${PYTHONPATH}" coverage run `which trial` silverberg; coverage html -d _trial_coverage

thrift:
${THRIFT_COMPILER} -out silverberg/ --gen py:twisted interface/cassandra.thrift
Expand Down
17 changes: 13 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Silverberg
==========

|build|_ |coverage|_

Silverberg is a connection pooled, low-level client API for Cassandra CQL3 in Twisted python.

Named after the SSS Silverberg, which contained the computer Cassandra in an episode of Red Dwarf. Hey, all of the mythological references to Cassandra are all getting kinda old, no?
Expand All @@ -22,7 +24,7 @@ Prerequisites:

* Python >= 2.7
* Twisted
* Thrift
* Thrift
* Cassandra >= 1.2

Version History
Expand All @@ -40,7 +42,7 @@ Version History
- 0.0.x
- Early development version

Running Tests and Lint
Running Tests and Lint
======================

``make test`` and ``make lint``
Expand All @@ -55,6 +57,13 @@ Contributing

We love pull requests! Please:

* Follow reasonable GitHub Pull Request practices
* Follow reasonable GitHub Pull Request practices
* Make sure that your new contributed code contains reasonable unit tests
* Unit tests and lint continue to pass
* Unit tests and lint continue to pass


.. |build| image:: https://secure.travis-ci.org/rackerlabs/silverberg.png?branch=master
.. _build: http://travis-ci.org/rackerlabs/silverberg

.. |coverage| image:: https://coveralls.io/repos/rackerlabs/silverberg/badge.png?branch=master
.. _coverage: https://coveralls.io/r/rackerlabs/silverberg?branch=master