Skip to content

Commit

Permalink
Merge pull request #17 from rht/master
Browse files Browse the repository at this point in the history
Add Travis CI file
  • Loading branch information
Bjarke Felbo authored Nov 8, 2017
2 parents 1aadc4f 9e1d327 commit 585fa34
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 1,16 @@
dist: trusty
language: python
notifications:
email: false
cache:
pip: true
matrix:
include:
- python: 2.7
install:
- pip install nose tensorflow==1.4.0
- pip install -e .
script:
- python scripts/download_weights.py
- cd tests
- nosetests -v
5 changes: 4 additions & 1 deletion scripts/download_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,10 @@ def prompt():
'n': False,
'no': False,
}
choice = raw_input().lower()
if 'TRAVIS' in os.environ:
choice = 'yes'
else:
choice = raw_input().lower()
if choice in valid:
return valid[choice]
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 9,7 @@
install_requires=[
'emoji==0.4.5',
'h5py==2.7.0',
'Keras==2.0.7',
'Keras==2.0.9',
'numpy==1.13.1',
'scikit-learn==0.19.0',
'text-unidecode==1.0',
Expand Down

0 comments on commit 585fa34

Please sign in to comment.