diff --git a/.travis.yml b/.travis.yml index f0f419837..9ada70f10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ 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' @@ -16,3 +16,4 @@ matrix: - name: '3.7' python: 3.7 script: tox +after_success: if [ "${TRAVIS_PYTHON_VERSION}" == "3.7" ]; then coveralls; fi; diff --git a/README.md b/README.md index a5e0e8661..4b2065e0b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/tox.ini b/tox.ini index 8472b09d3..e601a547a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = lint - py{36,37} doctest + py{36,37} [travis] python = @@ -18,12 +18,6 @@ basepython=python3 extras=linter commands=flake8 {toxinidir}/brownie {toxinidir}/tests -[testenv] -deps = - pytest - pytest-cov -commands=python -m pytest tests - [testenv:doctest] deps = sphinx @@ -31,4 +25,16 @@ deps = pygments_lexer_solidity commands = sphinx-build {posargs:-E} -b html docs dist/docs - sphinx-build -b linkcheck docs dist/docs \ No newline at end of file + 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/