<commit_before>sudo: true
language: python
python:
- 2.7

env:
  global:
  - secure: <KEY>

addons:
  artifacts:
    s3_region: us-west-2
    paths:
    - $(ls tests/artifacts/*.png | tr "\n" ":")

cache:
  directories:
  - "$HOME/.cache/pip"

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

before_install:
- tests/__isfork.sh
- openssl aes-256-cbc -K $encrypted_45757fbb12c0_key
  -iv $encrypted_45757fbb12c0_iv -in id_rsa.travis.enc -out id_rsa.travis -d
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/netflix-proxy_xvfb_99.pid
  --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
- sudo apt-get -y update
- sudo apt-get -y install -y libappindicator1 fonts-liberation
#- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#- sudo dpkg -i google-chrome-stable_current_amd64.deb
- wget https://s3-eu-central-1.amazonaws.com/belodetech/google-chrome-stable_49.0.2623.112-1_amd64.deb
- sudo dpkg -i google-chrome-stable_49.0.2623.112-1_amd64.deb
- sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev
- sudo -H pip install --upgrade cryptography
- sudo -H pip install --upgrade pyopenssl ndg-httpsclient pyasn1

install:
- tests/__isfork.sh
- sudo -H pip install -r tests/requirements.txt

before_script:
- tests/__isfork.sh
- chmod 600 id_rsa.travis && chmod 644 id_rsa.travis.<EMAIL>
- export NAME=$(uuidgen)
- export RESOLVER=$(grep nameserver /etc/resolv.conf)
- sudo python tests/testbuild.py digitalocean --create --name ${NAME} --api_token=$do_api_v2_token
  --branch=$TRAVIS_BRANCH --region=$do_region --tb_user=$he_tunnel_broker_uname --tb_passwd=$<PASSWORD>
  --tb_key=$he_tunnel_update_key --tb_index=$he_tunnel_index || (sudo python tests/testbuild.py
  digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token && false)

script:
- tests/__isfork.sh
- sudo python tests/testvideo.py netflix --email=$netflix_email --password=$<PASSWORD> || sudo python tests/testvideo.py hulu --email=$hulu_email --password=$<PASSWORD>

after_script:
- tests/__isfork.sh
- printf "${RESOLVER}\n" | sudo tee /etc/resolv.conf
- sudo python tests/testbuild.py digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token

after_success:
- tests/__isfork.sh
- sudo tests/gh-pages-push.sh
<commit_msg>Pass build of Hulu test fail<commit_after>sudo: true
language: python
python:
- 2.7

env:
  global:
  - secure: <KEY>

addons:
  artifacts:
    s3_region: us-west-2
    paths:
    - $(ls tests/artifacts/*.png | tr "\n" ":")

cache:
  directories:
  - "$HOME/.cache/pip"

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

before_install:
- tests/__isfork.sh
- openssl aes-256-cbc -K $encrypted_45757fbb12c0_key
  -iv $encrypted_45757fbb12c0_iv -in id_rsa.travis.enc -out id_rsa.travis -d
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/netflix-proxy_xvfb_99.pid
  --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
- sudo apt-get -y update
- sudo apt-get -y install -y libappindicator1 fonts-liberation
#- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#- sudo dpkg -i google-chrome-stable_current_amd64.deb
- wget https://s3-eu-central-1.amazonaws.com/belodetech/google-chrome-stable_49.0.2623.112-1_amd64.deb
- sudo dpkg -i google-chrome-stable_49.0.2623.112-1_amd64.deb
- sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev
- sudo -H pip install --upgrade cryptography
- sudo -H pip install --upgrade pyopenssl ndg-httpsclient pyasn1

install:
- tests/__isfork.sh
- sudo -H pip install -r tests/requirements.txt

before_script:
- tests/__isfork.sh
- chmod 600 id_rsa.travis && chmod 644 id_rsa.travis.pub
- export NAME=$(uuidgen)
- export RESOLVER=$(grep nameserver /etc/resolv.conf)
- sudo python tests/testbuild.py digitalocean --create --name ${NAME} --api_token=$do_api_v2_token
  --branch=$TRAVIS_BRANCH --region=$do_region --tb_user=$he_tunnel_broker_uname --tb_passwd=$he_tunnel_broker_passwd
  --tb_key=$he_tunnel_update_key --tb_index=$he_tunnel_index || (sudo python tests/testbuild.py
  digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token && false)

script:
- tests/__isfork.sh
- sudo python tests/testvideo.py netflix --email=$netflix_email --password=<PASSWORD>
- sudo python tests/testvideo.py hulu --email=$hulu_email --password=$<PASSWORD> && true

after_script:
- tests/__isfork.sh
- printf "${RESOLVER}\n" | sudo tee /etc/resolv.conf
- sudo python tests/testbuild.py digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token

after_success:
- tests/__isfork.sh
- sudo tests/gh-pages-push.sh

{'fraction_non_alphanumeric': 0.14303691275167785, 'fraction_numerical': 0.03523489932885906, 'mean_word_length': 3.8123107971745713, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, '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': '2910602', 'n_tokens_mistral': 1970, 'n_tokens_neox': 1833, 'n_words': 366}