Skip to content

Commit

Permalink
Merge 56eb48f into 9b483ef
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanfoulis committed Apr 23, 2018
2 parents 9b483ef + 56eb48f commit a421a82
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ docs/_build
/.idea
.ropeproject/
*.egg-info
.tox
.eggs
.coverage
Pipfile
Pipfile.lock
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sudo: false
language: python
python:
- "2.7"
install: pip install tox-travis coveralls
script: tox
branches:
only:
- master
after_success:
- coveralls
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[coverage:run]
source = sendsms

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:

[flake8]
exclude = build,dist,env,.env,.tox,.eggs
show-source = True
max-line-length = 120
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tox]
envlist = flake8,py27-dj{111},py{35,36}-dj{111,20}

[testenv]
commands =
coverage erase
coverage run setup.py test
coverage report
deps =
coverage
py27: pysqlite
dj111: Django~=1.11
dj20: Django~=2.0

[testenv:flake8]
commands = flake8 sendsms setup.py
deps = flake8

0 comments on commit a421a82

Please sign in to comment.