From 4837151d3297893bf393ff063934617b042ed650 Mon Sep 17 00:00:00 2001 From: Alexander Zayats Date: Tue, 28 Feb 2017 17:12:43 +0200 Subject: [PATCH] Add TravisCI support --- .travis.yml | 21 +++++++++++++++++++++ edx_adapt/settings.py | 4 +++- requirements.txt | 13 +++++-------- 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c3c0bc1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: python +python: + - "2.7" + +dist: trusty + +services: + - mongodb +addons: + apt: + sources: + - mongodb-3.0-precise + packages: + - mongodb-org-server + +cache: pip + +install: + - pip install -r requirements.txt + +script: python -m unittest discover -p "logic_tests.py" diff --git a/edx_adapt/settings.py b/edx_adapt/settings.py index dd34d25..bc8a9a2 100644 --- a/edx_adapt/settings.py +++ b/edx_adapt/settings.py @@ -1 +1,3 @@ -LOGS_DIR = '/var/log/edx-adapt/' +# FIXME(idegtiarov) Log dir is set to the project dir to avoid changing dirs permissions in travis tests runs. Should be +# changed to the appropriate log dir on production. +LOGS_DIR = 'log/edx-adapt/' diff --git a/requirements.txt b/requirements.txt index db4f4d4..c3f8108 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ -boto -flask -flask-cors -flask_restful -hmmlearn -pymongo -sklearn -requests +flask==0.11.1 +flask-cors==3.0.2 +flask_restful==0.3.5 +pymongo==3.3.0 +requests==2.11.1