Skip to content

Commit

Permalink
Merge pull request #1 from rmad17/travis-ci
Browse files Browse the repository at this point in the history
Travis ci
  • Loading branch information
rmad17 committed Oct 10, 2018
2 parents 54a3376 + e98b971 commit 4e23cc0
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: python
python:
- "3.4"
- "3.5"
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ name = "pypi"
pillow = "*"
pyyaml = "*"
"send2trash" = "*"
pytest = "*"

[dev-packages]

[requires]
python_version = "3.7"
python_version = "3.4"
55 changes: 53 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A fuzzy receipt parser written in Python

<br>[![Build Status](https://travis-ci.org/rmad17/receipt-parser.svg?branch=master)](https://travis-ci.org/rmad17/receipt-parser)<br>
Updating your housekeeping book is a tedious task: You need to manually find the shop name, the date and the total from every receipt. Then you need to write it down. At the end you want to calculate a sum of all bills. Nasty. So why not let a machine do it?

This is a fuzzy receipt parser written in Python. You give it any dirty old receipt lying around and it will try its best to find the correct data for you.
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
testpaths = tests
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-i https://pypi.org/simple
atomicwrites==1.2.1
attrs==18.2.0
more-itertools==4.3.0
pillow==5.3.0
pluggy==0.7.1
py==1.6.0
pytest==3.8.2
pyyaml==3.13
send2trash==1.5.0
six==1.11.0
8 changes: 8 additions & 0 deletions tests/test_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


def func(x):
return x + 1


def test_answer():
assert func(4) == 5

0 comments on commit 4e23cc0

Please sign in to comment.