Skip to content

Commit

Permalink
Merge pull request #134 from HyperLink-Technology/coveralls
Browse files Browse the repository at this point in the history
add coveralls
  • Loading branch information
iamdefinitelyahuman authored May 24, 2019
2 parents ad66801 + 411cdd9 commit 630e02f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ install:
- sudo apt-get install -y python$TRAVIS_PYTHON_VERSION-dev python$TRAVIS_PYTHON_VERSION-tk npm solc
- npm -g install ganache-cli
- pip install -r requirements-dev.txt
- pip install tox-travis
- pip install tox-travis coveralls
matrix:
include:
- name: '3.6'
python: 3.6
- name: '3.7'
python: 3.7
script: tox
after_success: if [ "${TRAVIS_PYTHON_VERSION}" == "3.7" ]; then coveralls; fi;
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Brownie

![Pypi Status](https://img.shields.io/pypi/v/eth-brownie.svg) ![Build Status](https://img.shields.io/travis/com/HyperLink-Technology/brownie.svg) ![Docs Status](https://readthedocs.org/projects/eth-brownie/badge/?version=latest)
[![Pypi Status](https://img.shields.io/pypi/v/eth-brownie.svg)](https://pypi.org/project/eth-brownie/) [![Build Status](https://img.shields.io/travis/com/HyperLink-Technology/brownie.svg)](https://travis-ci.com/HyperLink-Technology/brownie) [![Docs Status](https://readthedocs.org/projects/eth-brownie/badge/?version=latest)](https://eth-brownie.readthedocs.io/en/latest/) [![Coverage Status](https://coveralls.io/repos/github/HyperLink-Technology/brownie/badge.svg?branch=master)](https://coveralls.io/github/HyperLink-Technology/brownie?branch=master)

Brownie is a Python framework for deploying, testing and interacting with Ethereum smart contracts.

Expand Down
22 changes: 14 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist =
lint
py{36,37}
doctest
py{36,37}

[travis]
python =
Expand All @@ -18,17 +18,23 @@ basepython=python3
extras=linter
commands=flake8 {toxinidir}/brownie {toxinidir}/tests

[testenv]
deps =
pytest
pytest-cov
commands=python -m pytest tests

[testenv:doctest]
deps =
sphinx
sphinx_rtd_theme
pygments_lexer_solidity
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
sphinx-build -b linkcheck docs dist/docs

[testenv:py36]
deps =
pytest
pytest-cov
commands=python -m pytest tests/

[testenv:py37]
deps =
pytest
pytest-cov
commands=python -m pytest --cov=brownie/ tests/

0 comments on commit 630e02f

Please sign in to comment.