Skip to content

Commit be03f42

Browse files
lesykalfredfrancis
authored andcommitted
Add travis config file (alfredfrancis#50)
* Add: travis config * Add: pytest command * Add: sample test * Update README.md
1 parent e5dfad5 commit be03f42

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
install:
5+
- pip install -r requirements.txt
6+
script:
7+
- pytest

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IKY
2-
[![Join the chat at https://gitter.im/ai-chatbot-framework/Lobby](https://badges.gitter.im/ai-chatbot-framework/Lobby.svg)](https://gitter.im/ai-chatbot-framework/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2+
[![Join the chat at https://gitter.im/ai-chatbot-framework/Lobby](https://badges.gitter.im/ai-chatbot-framework/Lobby.svg)](https://gitter.im/ai-chatbot-framework/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/alfredfrancis/ai-chatbot-framework.svg?branch=master)](https://travis-ci.org/alfredfrancis/ai-chatbot-framework)
33
### An AI Chatbot framework built in Python
44

55

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ scikit-learn==0.19.1
1919
simplejson==3.13.2
2020
Werkzeug==0.13
2121
gunicorn
22-
gevent
22+
gevent
23+
pytest

tests/test_sample.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
3+
4+
def f():
5+
return 4
6+
7+
8+
def test_function():
9+
assert f() == 4

0 commit comments

Comments
 (0)