mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
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
|
sudo: required
|
||||||
language: python
|
language: python
|
||||||
python: 3.5
|
python:
|
||||||
|
- 3.4
|
||||||
services:
|
- 3.5
|
||||||
- docker
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install codecov
|
- source /etc/lsb-release
|
||||||
- docker-compose build
|
- 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
|
after_success: codecov
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# BigchainDB
|
# BigchainDB
|
||||||
|
|
||||||
[](https://travis-ci.org/bigchaindb/bigchaindb)
|
[](https://pypi.python.org/pypi/BigchainDB)
|
||||||
|
[](https://travis-ci.org/bigchaindb/bigchaindb)
|
||||||
|
[](https://codecov.io/github/bigchaindb/bigchaindb?branch=develop)
|
||||||
|
[](http://bigchaindb.readthedocs.org/en/develop/?badge=develop)
|
||||||
|
|
||||||
## Documentation
|
## 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
|
from setuptools import setup
|
||||||
|
|
||||||
|
tests_require = [
|
||||||
|
'pytest',
|
||||||
|
'coverage',
|
||||||
|
'pep8',
|
||||||
|
'pyflakes',
|
||||||
|
'pylint',
|
||||||
|
'pytest',
|
||||||
|
'pytest-cov',
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='BigchainDB',
|
name='BigchainDB',
|
||||||
version='0.0.0',
|
version='0.0.0',
|
||||||
@ -45,5 +55,6 @@ setup(
|
|||||||
'bitcoin==1.1.42',
|
'bitcoin==1.1.42',
|
||||||
],
|
],
|
||||||
setup_requires=['pytest-runner'],
|
setup_requires=['pytest-runner'],
|
||||||
tests_require=['pytest'],
|
tests_require=tests_require,
|
||||||
|
extras_require={'test': tests_require},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user