<commit_before>language: python

python: 3.4

sudo: false

env:
    - TARGET=e2e_first_chrome
    - TARGET=e2e_second_chrome
    - TARGET=e2e_third_chrome

services:
    - mongodb
    - elasticsearch
    - redis-server

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

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

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 ;
      cd dist ;
      while [ ! -f index.html ]; do sleep .5; done ;
        (nohup python -m http.server 9000 & );
      cd .. ;
    - cd test-server ;
      nohup python manage.py ;
      (nohup honcho start & ) ;
      sleep 5 ;
      cd ..;
    - if [ "${TARGET}" != "${TARGET/e2e_first/}" ]; then
        ./node_modules/.bin/protractor-flake --node-bin node --max-attempts=3 -- protractor-conf.js --suite=a
          --stackTrace --verbose
          --capabilities.browserName "${TARGET/e2e_first_/}"
         ;
      fi
    - if [ "${TARGET}" != "${TARGET/e2e_second/}" ]; then
        ./node_modules/.bin/protractor-flake --node-bin node --max-attempts=3 -- protractor-conf.js --suite=b
          --stackTrace --verbose
          --capabilities.browserName "${TARGET/e2e_second_/}"
         ;
      fi
    - if [ "${TARGET}" != "${TARGET/e2e_third/}" ]; then
        ./node_modules/.bin/protractor-flake --node-bin node --max-attempts=3 -- protractor-conf.js --suite=c
          --stackTrace --verbose
          --capabilities.browserName "${TARGET/e2e_third_/}"
         ;
      fi

after_script:
    - killall -9 python<commit_msg>fix(travis): avoid running e2e tests in parallel<commit_after>language: python

python: 3.4

sudo: false

services:
    - mongodb
    - elasticsearch
    - redis-server

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

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

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 ;
      cd dist ;
      while [ ! -f index.html ]; do sleep .5; done ;
        (nohup python -m http.server 9000 & );
      cd .. ;
    - cd test-server ;
      nohup python manage.py ;
      (nohup honcho start & ) ;
      sleep 5 ;
      cd ..;
    - ./node_modules/.bin/protractor-flake --node-bin node --max-attempts=3 -- protractor-conf.js --stackTrace --verbose

after_script:
    - killall -9 python
{'fraction_non_alphanumeric': 0.14260112647209422, 'fraction_numerical': 0.023553507424475168, 'mean_word_length': 2.000768049155146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3973249', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1325, 'n_words': 283}