Skip to content

Commit

Permalink
Add TravisCI support
Browse files Browse the repository at this point in the history
  • Loading branch information
z4y4ts authored and Igor Degtiarov committed Feb 28, 2017
1 parent af4dce7 commit 4837151
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 3 additions & 1 deletion edx_adapt/settings.py
Original file line number Diff line number Diff line change
@@ -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/'
13 changes: 5 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4837151

Please sign in to comment.