From 1ea4ceba47621e26978f8fde1b3a9f95781f4f62 Mon Sep 17 00:00:00 2001 From: rht Date: Tue, 7 Nov 2017 23:31:54 +0100 Subject: [PATCH 1/2] Bump Keras 2.0.7 -> 2.0.9 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e6fb8b8..984ae11 100644 --- a/setup.py +++ b/setup.py @@ -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', From 9e1d3271eff51e050a35765794c4ee076762b19c Mon Sep 17 00:00:00 2001 From: rht Date: Tue, 7 Nov 2017 07:39:23 +0100 Subject: [PATCH 2/2] Add Travis CI file --- .travis.yml | 16 ++++++++++++++++ scripts/download_weights.py | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4b601d6 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/scripts/download_weights.py b/scripts/download_weights.py index 964fc9c..003783e 100644 --- a/scripts/download_weights.py +++ b/scripts/download_weights.py @@ -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: