Merge pull request #18 from bigchaindb/travis

Adjust travis script to work with codecov
This commit is contained in:
Alberto Granzotto 2016-02-12 10:39:01 +01:00
commit 41043b7e6f
6 changed files with 31 additions and 34 deletions

View File

@ -1,14 +1,22 @@
sudo: required
language: python
python: 3.5
services:
- docker
python:
- 3.4
- 3.5
before_install:
- pip install codecov
- docker-compose build
- source /etc/lsb-release
- echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee -a /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- sudo apt-get update -qq
script: docker-compose run --rm bigchaindb py.test -v --cov=bigchaindb
install:
- sudo apt-get install rethinkdb
- pip install -e .[test]
- pip install codecov
before_script: rethinkdb --daemon
script: py.test -v --cov=bigchaindb
after_success: codecov

View File

@ -1,6 +1,9 @@
# BigchainDB
[![Build Status](https://travis-ci.org/bigchaindb/bigchaindb.svg?branch=develop)](https://travis-ci.org/bigchaindb/bigchaindb)
[![PyPI](https://img.shields.io/pypi/v/bigchaindb.svg)](https://pypi.python.org/pypi/BigchainDB)
[![Travis branch](https://img.shields.io/travis/bigchaindb/bigchaindb/develop.svg)](https://travis-ci.org/bigchaindb/bigchaindb)
[![Codecov branch](https://img.shields.io/codecov/c/github/codecov/bigchaindb/develop.svg)](https://codecov.io/github/bigchaindb/bigchaindb?branch=develop)
[![Documentation Status](https://readthedocs.org/projects/bigchaindb/badge/?version=develop)](http://bigchaindb.readthedocs.org/en/develop/?badge=develop)
## Documentation

View File

@ -1,9 +0,0 @@
-r common.txt
pytest==2.8.2
pytest-cov
coverage
codecov
pep8
pyflakes
pylint

View File

@ -1,9 +0,0 @@
rethinkdb==2.2.0.post1
pysha3==0.3
pytz==2015.7
cryptography==1.2.1
statsd==3.2.1
python-rapidjson==0.0.6
logstats==0.2.1
base58==0.2.2
bitcoin==1.1.42

View File

@ -6,6 +6,16 @@ For full docs visit https://bigchaindb.readthedocs.org
"""
from setuptools import setup
tests_require = [
'pytest',
'coverage',
'pep8',
'pyflakes',
'pylint',
'pytest',
'pytest-cov',
]
setup(
name='BigchainDB',
version='0.0.0',
@ -45,5 +55,6 @@ setup(
'bitcoin==1.1.42',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
tests_require=tests_require,
extras_require={'test': tests_require},
)

View File

@ -1,7 +0,0 @@
[tox]
skipsdist = true
envlist = py35
[testenv]
commands = py.test -v --cov=bigchaindb
deps = -rrequirements/ci.txt