<commit_before>language: python

python: 3.4

sudo: false

services:
    - mongodb
    - elasticsearch
    - redis-server

addons:
  apt:
    sources:
    - mongodb-3.0-precise
    packages:
    - mongodb-org-server

cache:
    directories:
        - $HOME/.cache/bower
        - $HOME/.npm
        - $HOME/.pip

before_install:
    - npm config set loglevel warn 
    - npm install -g bower grunt-cli
    - export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x24
    - wget -N --no-verbose 'https://storage.googleapis.com/chromium-browser-continuous/Linux_x64/353893/chrome-linux.zip' && unzip chrome-linux.zip &&
      export CHROME_BIN=`pwd`/chrome-linux/chrome && $CHROME_BIN --version ;

install:
    - npm install
    - bower install --quiet
    - cd test-server && pip install -q -r requirements.txt && cd ..
    - ./node_modules/.bin/webdriver-manager update

script:
    - grunt ci:travis
    - grunt build --server='http://127.0.0.1:5000/api' --ws='ws://127.0.0.1:5100' ;
      cd dist ;
      while [ ! -f index.html ]; do sleep .5; done ;
        (nohup python -m http.server 9000 & );
      cd .. ;
    - cd test-server && python manage.py && (honcho start & ) && cd ..
    - curl 'http://127.0.0.1:5000/api' | python -m json.tool
    - ./node_modules/protractor/bin/protractor protractor-conf.js
        --stackTrace --verbose
        --baseUrl 'http://127.0.0.1:9000'
        --params.baseBackendUrl 'http://127.0.0.1:5000/api'
        --params.username 'admin'
        --params.password '<PASSWORD>'<commit_msg>start server no matter what manage returns<commit_after>language: python

python: 3.4

sudo: false

services:
    - mongodb
    - elasticsearch
    - redis-server

addons:
  apt:
    sources:
    - mongodb-3.0-precise
    packages:
    - mongodb-org-server

cache:
    directories:
        - $HOME/.cache/bower
        - $HOME/.npm
        - $HOME/.pip

before_install:
    - npm config set loglevel warn 
    - npm install -g bower grunt-cli
    - export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x24
    - wget -N --no-verbose 'https://storage.googleapis.com/chromium-browser-continuous/Linux_x64/353893/chrome-linux.zip' && unzip chrome-linux.zip &&
      export CHROME_BIN=`pwd`/chrome-linux/chrome && $CHROME_BIN --version ;

install:
    - npm install
    - bower install --quiet
    - cd test-server && pip install -q -r requirements.txt && cd ..
    - ./node_modules/.bin/webdriver-manager update

script:
    - grunt ci:travis
    - grunt build --server='http://127.0.0.1:5000/api' --ws='ws://127.0.0.1:5100' ;
      cd dist ;
      while [ ! -f index.html ]; do sleep .5; done ;
        (nohup python -m http.server 9000 & );
      cd .. ;
    - cd test-server ;
      python manage.py ;
      (nohup honcho start & ) ;
      cd ..
    - curl 'http://127.0.0.1:5000/api' | python -m json.tool
    - ./node_modules/protractor/bin/protractor protractor-conf.js
        --stackTrace --verbose
        --baseUrl 'http://127.0.0.1:9000'
        --params.baseBackendUrl 'http://127.0.0.1:5000/api'
        --params.username 'admin'
        --params.password '<PASSWORD>'
{'fraction_non_alphanumeric': 0.15593321407274896, 'fraction_numerical': 0.05068574836016696, 'mean_word_length': 2.1122448979591835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, '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': '3564638', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1177, 'n_words': 246}