<commit_before>language: python

python:
- 2.7

branches:
  only:
  - master
  - develop

env:
  matrix:
  - BACKEND_TEST=true JS_TEST=false
  - BACKEND_TEST=false JS_TEST=true

before_install:
- pip install codecov
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- bash -e /etc/init.d/xvfb start

install:
- set -e
- pushd $TRAVIS_BUILD_DIR
- source scripts/setup.sh || exit 1
- source scripts/setup_gae.sh || exit 1
- mkdir -p $GOOGLE_APP_ENGINE_HOME
- curl --silent https://storage.googleapis.com/appengine-sdks/deprecated/1919/google_appengine_1.9.19.zip
  -o gae-download.zip
- unzip -qq gae-download.zip -d $TOOLS_DIR/google_appengine_1.9.19/
- rm gae-download.zip
# Travis aborts test run if nothing is printed back to STDOUT for some time.
# -x is used to avoid that.
- if [[ $BACKEND_TEST == 'true' ]]; then bash -x scripts/install_third_party.sh; fi

script:
- if [[ $BACKEND_TEST == 'true' ]]; then bash scripts/test.sh --generate_coverage_report;
  fi
- if [[ $JS_TEST == 'true' ]]; then bash -x scripts/run_js_tests.sh; fi

after_success:<commit_msg>Updated the Travis CI configuration to send email notifications to Sean and Ben when a build succeeds or breaks after a commit.<commit_after>language: python

python:
- 2.7

branches:
  only:
  - master
  - develop

env:
  matrix:
  - BACKEND_TEST=true JS_TEST=false
  - BACKEND_TEST=false JS_TEST=true

notifications:
  email:
    recipients:
    - <EMAIL>
    - <EMAIL>
    on_success: change
    on_failure: change

before_install:
- pip install codecov
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- bash -e /etc/init.d/xvfb start

install:
- set -e
- pushd $TRAVIS_BUILD_DIR
- source scripts/setup.sh || exit 1
- source scripts/setup_gae.sh || exit 1
- mkdir -p $GOOGLE_APP_ENGINE_HOME
- curl --silent https://storage.googleapis.com/appengine-sdks/deprecated/1919/google_appengine_1.9.19.zip
  -o gae-download.zip
- unzip -qq gae-download.zip -d $TOOLS_DIR/google_appengine_1.9.19/
- rm gae-download.zip
# Travis aborts test run if nothing is printed back to STDOUT for some time.
# -x is used to avoid that.
- if [[ $BACKEND_TEST == 'true' ]]; then bash -x scripts/install_third_party.sh; fi

script:
- if [[ $BACKEND_TEST == 'true' ]]; then bash scripts/test.sh --generate_coverage_report;
  fi
- if [[ $JS_TEST == 'true' ]]; then bash -x scripts/run_js_tests.sh; fi

after_success:
{'fraction_non_alphanumeric': 0.12021857923497267, 'fraction_numerical': 0.015973097940311057, 'mean_word_length': 3.6034816247582206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4683845', 'n_tokens_mistral': 918, 'n_tokens_neox': 873, 'n_words': 229}