Skip to content

Commit

Permalink
Add travis ci (chyroc#57)
Browse files Browse the repository at this point in the history
* add travis ci test
  • Loading branch information
chyroc authored Mar 24, 2017
1 parent 0e1be88 commit e117e7d
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 80 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python

python:
- 3.6

cache:
directories:
- $HOME/.cache/pip

env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels

install:
- pip install -r requirements.txt

before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)

script:
- python -m nose -vs
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import logging.config
logging.config.fileConfig('logging.conf')
logger = logging.getLogger()

## 引用

from wechatsogou import *
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Flask==0.11.1
Flask==0.12
lxml==3.7.0
MarkupSafe==0.23
MarkupSafe==1.0
nose==1.3.7
Pillow==3.4.2
requests==2.10.0
requests==2.13.0
six==1.10.0
Werkzeug==0.11.11
Werkzeug==0.12.1
xlrd==1.0.0
zope.interface==4.3.2
zope.interface==4.3.3
10 changes: 10 additions & 0 deletions test/TestOne.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest


class TestOne(unittest.TestCase):
def test_for_fun(self):
pass


if __name__ == '__main__':
unittest.main()
57 changes: 0 additions & 57 deletions test/api_test.py

This file was deleted.

Binary file removed test/code.jpg
Binary file not shown.
18 changes: 0 additions & 18 deletions test/ruokuaicode_test.py

This file was deleted.

0 comments on commit e117e7d

Please sign in to comment.