Merge pull request #18 from bigchaindb/travis
Adjust travis script to work with codecov
This commit is contained in:
commit
41043b7e6f
22
.travis.yml
22
.travis.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
-r common.txt
|
||||
|
||||
pytest==2.8.2
|
||||
pytest-cov
|
||||
coverage
|
||||
codecov
|
||||
pep8
|
||||
pyflakes
|
||||
pylint
|
|
@ -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
|
13
setup.py
13
setup.py
|
@ -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},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue