Skip to content

Commit

Permalink
Add coveralls support. (#63)
Browse files Browse the repository at this point in the history
Add coveralls support and stabilize tests.
  • Loading branch information
Cornelius Riemenschneider committed Nov 9, 2017
1 parent 9e44222 commit c620e1c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: python
cache: pip
sudo: false
matrix:
include:
Expand All @@ -10,16 +11,23 @@ matrix:
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
install: pip install tox
script: tox

services:
- redis-server
- mongodb

install: pip install tox coveralls

before_script:
- eval "$(gimme 1.8.3)"
- source ./.travis/start_minio.sh
- eval "$(gimme 1.9.2)"
- bash .travis/start_minio.sh
- psql -c 'create database simplekv_test;' -U postgres
- psql -c 'ALTER ROLE travis CONNECTION LIMIT -1;' -U postgres
- mysql -e 'create database simplekv_test;'
- mysql -e 'set global max_connections = 200;'
before_install:
- '[ -z "$encrypted_dea9dfb12f4a_key" ] || openssl aes-256-cbc -K $encrypted_dea9dfb12f4a_key -iv $encrypted_dea9dfb12f4a_iv -in azure_credentials.ini.enc -out azure_credentials.ini -d'

script: tox

after_success:
- coveralls
3 changes: 3 additions & 0 deletions .travis/start_minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ go get -u github.com/minio/minio
export MINIO_ACCESS_KEY=minio
export MINIO_SECRET_KEY=miniostorage

go version

mkdir -p ~/s3
minio version
minio server ~/s3 &
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ simple key-value storage api

.. image:: https://travis-ci.org/mbr/simplekv.png?branch=master
:target: https://travis-ci.org/mbr/simplekv
.. image:: https://coveralls.io/repos/github/mbr/simplekv/badge.svg?branch=master
:target: https://coveralls.io/github/mbr/simplekv?branch=master

*simplekv* is an API for very basic key-value stores used for small, frequently
accessed data or large binary blobs. Its basic interface is easy to implement
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
envlist = py27,py34,py35,py36
envlist = py{27,34,35,36}

[pytest]
pep8ignore = test_* E402

# Pinning for pytest only until 3.2.1 is released, 3.2.0 is broken on python 2 for us
[testenv]
deps=
pytest==3.1.3
pytest
pytest-pep8
pytest-cov
mock
tempdir
redis
Expand All @@ -21,4 +21,4 @@ deps=
azure-storage
futures
# ideally we would not need futures here but it doesn't work otherwise
commands=py.test -rs --pep8 --doctest-modules simplekv/idgen.py simplekv/fs.py tests
commands=py.test --cov=simplekv -rs --pep8 --doctest-modules simplekv/idgen.py simplekv/fs.py tests

0 comments on commit c620e1c

Please sign in to comment.