<commit_before>language: python
sudo: required
dist: trusty
group: deprecated-2017Q4
addons:
  firefox: latest
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
before_install:
  - CDVERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
  - wget --no-verbose http://chromedriver.storage.googleapis.com/$CDVERSION/chromedriver_linux64.zip
  - unzip chromedriver_linux64.zip
  - sudo chmod u+x chromedriver
  - sudo mv chromedriver /usr/bin/
  # Firefox latest
  - FDVERSION=`curl -s -L https://github.com/mozilla/geckodriver/releases/latest | grep -E href=\"\(.*\)geckodriver-v\(.*\)-linux64.tar.gz\"`
  - VFILE=`echo $FDVERSION | sed -E "s/^.*<a href=\"/https:\/\/github.com/" -- | sed -E "s/\" rel=\"nofollow\">//" --`
  - wget --no-verbose $VFILE
  - tar xzf geckodriver*-linux64.tar.gz
  - sudo chmod u+x geckodriver
  - sudo mv geckodriver /usr/bin/
install:
  - pip install .
  - pip install -r requirements.txt
  - pip install -r requirements-dev.txt
matrix:
  include:
    - python: "3.6"
      env:
        - BROWSER=headlesschrome
        - SELENIUM=3.8.0
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS=--dotted
    - python: "2.7"
      env:
        - BROWSER=chrome
        - SELENIUM=2.53.6
        - ROBOTFRAMEWORK=2.9.2
        - ROBOT_OPTIONS=--dotted
    - python: "2.7"
      env:
        - BROWSER=chrome
        - SELENIUM=3.8.0
        - ROBOTFRAMEWORK=2.8.7
        - ROBOT_OPTIONS=
    - python: "3.3"
      env:
        - BROWSER=chrome
        - SELENIUM=2.53.6
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS=--dotted
    - python: "3.6"
      env:
        - BROWSER=firefox
        - SELENIUM=3.8.0
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS="--exclude Known_Issue_Firefox --dotted"
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - pip install selenium==$SELENIUM
  - pip install robotframework==$ROBOTFRAMEWORK
script:
  - python test/run_tests.py $BROWSER $ROBOT_OPTIONS<commit_msg>Update selenium to 3.8.1 in Travis (#1037)<commit_after>language: python
sudo: required
dist: trusty
group: deprecated-2017Q4
addons:
  firefox: latest
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
before_install:
  - CDVERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
  - wget --no-verbose http://chromedriver.storage.googleapis.com/$CDVERSION/chromedriver_linux64.zip
  - unzip chromedriver_linux64.zip
  - sudo chmod u+x chromedriver
  - sudo mv chromedriver /usr/bin/
  # Firefox latest
  - FDVERSION=`curl -s -L https://github.com/mozilla/geckodriver/releases/latest | grep -E href=\"\(.*\)geckodriver-v\(.*\)-linux64.tar.gz\"`
  - VFILE=`echo $FDVERSION | sed -E "s/^.*<a href=\"/https:\/\/github.com/" -- | sed -E "s/\" rel=\"nofollow\">//" --`
  - wget --no-verbose $VFILE
  - tar xzf geckodriver*-linux64.tar.gz
  - sudo chmod u+x geckodriver
  - sudo mv geckodriver /usr/bin/
install:
  - pip install .
  - pip install -r requirements.txt
  - pip install -r requirements-dev.txt
matrix:
  include:
    - python: "3.6"
      env:
        - BROWSER=headlesschrome
        - SELENIUM=3.8.1
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS=--dotted
    - python: "2.7"
      env:
        - BROWSER=chrome
        - SELENIUM=2.53.6
        - ROBOTFRAMEWORK=2.9.2
        - ROBOT_OPTIONS=--dotted
    - python: "2.7"
      env:
        - BROWSER=chrome
        - SELENIUM=3.8.1
        - ROBOTFRAMEWORK=2.8.7
        - ROBOT_OPTIONS=
    - python: "3.3"
      env:
        - BROWSER=chrome
        - SELENIUM=2.53.6
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS=--dotted
    - python: "3.6"
      env:
        - BROWSER=firefox
        - SELENIUM=3.8.1
        - ROBOTFRAMEWORK=3.0.2
        - ROBOT_OPTIONS="--exclude Known_Issue_Firefox --dotted"
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - pip install selenium==$SELENIUM
  - pip install robotframework==$ROBOTFRAMEWORK
script:
  - python test/run_tests.py $BROWSER $ROBOT_OPTIONS
{'fraction_non_alphanumeric': 0.14503067484662577, 'fraction_numerical': 0.0301840490797546, 'mean_word_length': 2.19185591229444, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2787541', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1552, 'n_words': 271}