Skip to content

Commit

Permalink
Add stub for unit testing, add .travis.yml for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycpsu committed Apr 6, 2018
1 parent 32f054b commit 880c5e3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: python
install:
- pip install
script:
- python setup.py test
matrix:
include:
- stage: test
python: 2.7
- stage: test
python: 3.5
- stage: test
python: 3.6
- stage: deploy
deploy:
provider: pypi
user: tonycpsu
password:
secure: aXjV+Yc94YdW4Q0vGo2HOp+u29PyRkYTMTxhf8kjWW9eKRNfOhL0LKVF86UXPxxZYMUJUD1Ep/H212ofUqbCL3xvBoMZsMbfzvC3NQMtEfIjMX5rn8pWRloPmJvLZUnNj5j60xR+ku2PLEZMrxtIZrGtAH95BZpKPg3mU6Gn3NIgJY2MHEkrwg1ywfDAiZNhL+hhhIpVyxtwSqd8SZUsh0VmUJ+93pmqmUtqXG7cvYeBy3tPIQkLodh4TmtsGki9brcxcJ3rBRfYxIDEOOfrM83HRSH+ZBHh6x0fV2uJRq7ZdFeea3e0aEdJYdm955K9TvvFzRkZhVUWOj+a0A3++JUzaaQGkFa/jUG+ll01EuN5+LgwwKdPcsi/z3ULhyhdusZrLUqJbGA1eahaSZdZCq7vG57qa6+wReG6pz/aLduayLP/cjAp0RxOqQsyh61e+nvY4CW9F2r+njQiO2UlkqOHp4WxVe4Finlbi1Nm77k+sFIrJFEF8b/LV7teV4QoQlhz+J+ODaA/VEbwqxVx5GAE5AC5fMLMblZufVHT0nw08nwVh59SF7lEAWLkmKAN6X704kp7wSrZAkRPgC/oYHNUx6lgfED0b9YghuGRk8d454ge9nY25wayMli/WuTTng3NoI/Amh13+NaQXLfKDOhqGEPIaQcX97JQv1QuQcM=
on:
tags: true
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"urwid_utils>=0.1.2",
"panwid>=0.2.3"
],
test_suite="test",
entry_points = {
"console_scripts": [
"mlbstreamer=mlbstreamer.__main__:main",
Expand Down
Empty file added test/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions test/test_mlbplay.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import unittest

class TestMLBPlay(unittest.TestCase):

def test_noop(self):
# FIXME: actual unit testing will have to wait until mlbplay
# can run without MLB.tv credentials
return

0 comments on commit 880c5e3

Please sign in to comment.