Skip to content

Commit

Permalink
enable travis CI and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
slxiao committed Nov 22, 2019
1 parent 3d93cac commit 5233808
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
sudo: false

python:
- "2.7"
- "3.6"
- "3.7"

install:
- pip install tox
- pip install coveralls
- pip install tox-travis

script:
tox

after_success:
coveralls
2 changes: 1 addition & 1 deletion partition/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.2"
__version__ = "0.0.2"
8 changes: 4 additions & 4 deletions partition/partition.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys

import argument
import greedy
import kk
import dp
from . import argument
from . import greedy
from . import kk
from . import dp
from . import __version__

def partition(args=None):
Expand Down
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tox]
envlist = py{27,36,37}

[testenv]
usedevelop = True
deps =
pytest
pytest-cov
pytest-mock

commands =
{envpython} -m pytest -vv -s --cov=conport --cov-report term --cov-report html

0 comments on commit 5233808

Please sign in to comment.