<commit_before>sudo: required

language: python

python:
  - "3.4"

services:
  - docker

cache:
  - apt
  
env:
  - MONGO_IMAGE=mongo:3.2.0 REDIS_IMAGE=redis:latest DOCKER_OPTIONS="-e WIDUKIND_MONGODB_URL=mongodb://mongodb/widukind_test --link=mongodb:mongodb -e WIDUKIND_REDIS_URL=redis://redis:6379/0 --link=redis:redis --rm"

before_install:
  - docker pull $MONGO_IMAGE
  - docker pull $REDIS_IMAGE
  - docker run -d --name=mongodb $MONGO_IMAGE mongod --smallfiles --noauth --directoryperdb 
  - docker run -d --name=redis $REDIS_IMAGE redis-server --appendonly yes 
  - docker build -t widukind/web -f DockerfileTests .
  - pip install coveralls
 
before_script:
  - sleep 15
  - env
  - docker run $DOCKER_OPTIONS widukind/web pip freeze

script:
  - docker run $DOCKER_OPTIONS -e COVERAGE_FILE=/coverage/.coverage -v $PWD/coverage:/coverage widukind/web nosetests --with-coverage -s -v widukind_web
  - docker run $DOCKER_OPTIONS widukind/web flake8 --exit-zero widukind_web
  
after_script: COVERAGE_FILE=./coverage/.coverage coveralls --verbose

notifications:<commit_msg>fixes options for MongoDB 3.2<commit_after>sudo: required

language: python

python:
  - "3.4"

services:
  - docker

cache:
  - apt
  
env:
  - MONGO_IMAGE=mongo:3.2.0 REDIS_IMAGE=redis:latest DOCKER_OPTIONS="-e WIDUKIND_MONGODB_URL=mongodb://mongodb/widukind_test --link=mongodb:mongodb -e WIDUKIND_REDIS_URL=redis://redis:6379/0 --link=redis:redis --rm"

before_install:
  - docker pull $MONGO_IMAGE
  - docker pull $REDIS_IMAGE
  - docker run -d --name=mongodb $MONGO_IMAGE mongod --noauth 
  - docker run -d --name=redis $REDIS_IMAGE redis-server --appendonly yes 
  - docker build -t widukind/web -f DockerfileTests .
  - pip install coveralls
 
before_script:
  - sleep 15
  - env
  - docker run $DOCKER_OPTIONS widukind/web pip freeze

script:
  - docker run $DOCKER_OPTIONS -e COVERAGE_FILE=/coverage/.coverage -v $PWD/coverage:/coverage widukind/web nosetests --with-coverage -s -v widukind_web
  - docker run $DOCKER_OPTIONS widukind/web flake8 --exit-zero widukind_web
  
after_script: COVERAGE_FILE=./coverage/.coverage coveralls --verbose

notifications:
{'fraction_non_alphanumeric': 0.11023255813953488, 'fraction_numerical': 0.013023255813953489, 'mean_word_length': 3.7588495575221237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4245070', 'n_tokens_mistral': 870, 'n_tokens_neox': 809, 'n_words': 179}