<commit_before>sudo: required

language: python

python:
  - "2.7"

install:
  - sudo pip install -m mysql-python requests simplemysql

services:
  - docker

before_install:
  - docker pull mariusm/ubuntu-mariadb
  - docker run -d -p 3306:3306 mariusm/ubuntu-mariadb
  - curl https://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
  - echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" | sudo tee /etc/apt/sources.list.d/varnish-cache.list
  - sudo apt-get -q update
  - sudo apt-get -y install varnish
  - sudo apt-get -y install python-dev libmysqlclient-dev
  - sudo cp logreader/test/test_default.vcl /etc/varnish/default.vcl
  - sudo service varnish restart

before_script:
  - pwd
  - cd logreader/test

script:
  - python log_test.py<commit_msg>Travis tryout 6<commit_after>sudo: required

language: python

python:
  - "2.7"

install:
  - sudo pip install mysql-python requests simplemysql

services:
  - docker

before_install:
  - docker pull mariusm/ubuntu-mariadb
  - docker run -d -p 3306:3306 mariusm/ubuntu-mariadb
  - curl https://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
  - echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" | sudo tee /etc/apt/sources.list.d/varnish-cache.list
  - sudo apt-get -q update
  - sudo apt-get -y install varnish
  - sudo apt-get -y install python-dev libmysqlclient-dev
  - sudo cp logreader/test/test_default.vcl /etc/varnish/default.vcl
  - sudo service varnish restart

before_script:
  - pwd
  - cd logreader/test

script:
  - python log_test.py
{'fraction_non_alphanumeric': 0.11252383979656706, 'fraction_numerical': 0.01589319771137953, 'mean_word_length': 3.088311688311688, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4569346', 'n_tokens_mistral': 634, 'n_tokens_neox': 573, 'n_words': 138}