Skip to content

Commit

Permalink
add travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
parikls committed May 2, 2019
1 parent f441f40 commit e6b668a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dist: xenial
language: python
python:
- '3.5'
- '3.6'
- '3.7'
install:
- pip install -r requirements.txt
script: python -m unittest
deploy:
provider: pypi
user: porovozls
password:
secure: qaDiANDKVnMRYdp0tXFzqIuZhAWpU5Ae1ksSKlSfrValDgJfHrbRBp8XNlPaT2PZ++GcdP13gIA3jeSu2+YY8Riu1qDgk23Rlx6kaoevIAHHKHKf5Ffu45w9+tDYG3Ujol/RzdEUEFxd9wi9d/rfv/us8jiBGUS+OBADIWW63y/EtY/D13OEkcfhu4OsVAzyM/Wh8hOQB+IhHDgYGEBpSAFG8GKYWShv03velE4rXTDFKETo2W/H1FqIpdn7k01lSggR+ghM6rPMz2NlZFjbPFs8l6CAPlAbLZId6yXLly543SrD0M/6yPO7I9YDzHeHBL+JV8TCZF/QAm5PA55q5GPFaKjdgW2uZcwdwDDfk1dm5OejP8VzmM/IIFYDH4PQlr9cYQB85ZaIq3+2mQMoIGgl/ffLHWGkAF7C4Ljd8qdWSJ9PEZMrJre5+3Q+A1vXBYuBNhHRBxpCD3XNygruwtR1IkVqZ+8ihCeVODWCKPpVa66Qr8pLyFCd8Xxt72RFNj0xvwQKehLK9zRcuu3/ybAW+MpeY6h4lenmAaYe9nmAjEEzTh0YpXZun+ZStFzUrfXcViaNz9Hpm2V3i72W/iHHVb87jxpSGgA3lljD8ayfpXd3JJb7sWiXsDYcxFCc7hg50cjCZrGOmpxzYuVTHGXxkjES+N18Xrrcm1ZOz04=
on:
repo: parikls/mem_usage_ui
python: '3.7'
tags: true
skip_cleanup: true
skip_existing: true
distributions: sdist
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mem-usage-ui
============

[![Build Status](https://travis-ci.org/parikls/mem_usage_ui.svg?branch=master)](https://travis-ci.org/parikls/mem_usage_ui)
[![PyPI version](https://badge.fury.io/py/mem-usage-ui.svg)](https://badge.fury.io/py/mem-usage-ui)

Disclaimer
==========

Expand Down
4 changes: 2 additions & 2 deletions mem_usage_ui/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop

from mem_usage_ui.__main__ import init_app
from mem_usage_ui.snapshot import SUBSCRIBE
from mem_usage_ui.snapshot import SnapshotProcessor


class RoutesTestCase(AioHTTPTestCase):
Expand Down Expand Up @@ -50,7 +50,7 @@ async def test_websocket_subscribe_invalid_process(self):
}

async with self.client.ws_connect('/ws') as ws:
await ws.send_json({"type": SUBSCRIBE, "pid": -1})
await ws.send_json({"type": SnapshotProcessor.MESSAGE_SUBSCRIBE, "pid": -1})
async for msg in ws:
response = json.loads(msg.data)
self.assertDictEqual(expected_response, response)
Expand Down

0 comments on commit e6b668a

Please sign in to comment.