Skip to content

Commit

Permalink
Sample CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarad1993 committed Apr 9, 2019
1 parent 043ad63 commit 66575ef
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
click==7.0
pyyaml>=4.2b1
gitpython==2.1.11
gitpython==2.1.11
pytest==4.4.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"click==7.0",
"pyyaml>=4.2b1",
"gitpython==2.1.11",
"watchdog==0.9.0"
"watchdog==0.9.0",
"pytest==4.4.0"
],
entry_points = {
"console_scripts": ["dyc=dyc.dyc:main"],
Expand Down
7 changes: 7 additions & 0 deletions tests/test_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# content of test_sample.py
def inc(x):
return x + 1


def test_answer():
assert inc(3) == 5

0 comments on commit 66575ef

Please sign in to comment.