Skip to content
Permalink
Browse files

Fixing tox for TravisCI and adding codecov.

  • Loading branch information...
javipalanca committed Jun 21, 2018
1 parent 39ccb84 commit be9c2429054cf71e21a709760801eeed39eac898
Showing with 24 additions and 15 deletions.
  1. +1 −0 .gitignore
  2. +14 −10 .travis.yml
  3. +4 −2 requirements_dev.txt
  4. +5 −3 tox.ini
@@ -61,3 +61,4 @@ target/
# pyenv python configuration file
.python-version
/.ipynb_checkpoints/
/.pytest_cache/
@@ -4,22 +4,26 @@
language: python
python:
- 3.6
- "3.7-dev"

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis

after_success:
- codecov

# command to run tests, e.g. python setup.py test
script: tox

# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: jpalanca
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: javipalanca/spade
python: 3.6
#deploy:
# provider: pypi
# distributions: sdist bdist_wheel
# user: jpalanca
# password:
# secure: PLEASE_REPLACE_ME
# on:
# tags: true
# repo: javipalanca/spade
# python: 3.6
@@ -1,4 +1,4 @@
pip==9.0.1
pip==10.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
@@ -8,9 +8,11 @@ coverage==4.1
Sphinx==1.4.8
cryptography==1.7
PyYAML==3.11
pytest==2.9.2
pytest==3.6.1
pytest-runner==2.11.1
asynctest==0.12.1
pytest-asyncio==0.8.0
pytest-cov==2.5.1
pytest-mock==1.10.0
pluggy==0.6.0
codecov==2.0.15
@@ -1,14 +1,15 @@
[tox]
envlist = py36, flake8
envlist = py36, py37, flake8

[travis]
python =
3.6: py36
3.7: py37

[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 spade
commands=flake8 --ignore=E501 spade

[testenv]
setenv =
@@ -20,7 +21,8 @@ deps =
-r{toxinidir}/requirements.txt
commands =
pip install -U pip
py.test --basetemp={envtmpdir}
py.test --basetemp={envtmpdir} --cov=spade
codecov



0 comments on commit be9c242

Please sign in to comment.
You can’t perform that action at this time.