<commit_before># Multi language is not supported so Python needs to be installed ourselves.
# Ruby is default.

language: ruby

rvm:
  - 1.9.3

notifications:
  irc:
    - "irc.efnet.net#archivebot"

before_install:
  - sudo add-apt-repository ppa:fkrull/deadsnakes --yes
  - sudo apt-get update -qq
  - wget https://bootstrap.pypa.io/get-pip.py

install:
  - bundle install --jobs=3 --retry=3 --deployment
  - sudo apt-get -qq install ircd-hybrid python3.4 python3.4-dev rsync libzmq3-dev
  - sudo python3.4 get-pip.py
  - travis_retry python3.4 -m pip install -q -r pipeline/requirements.txt --user
  - travis_retry python3.4 -m pip install -q nose irc --user
  - sudo cp test/example_rsyncd.conf /etc/rsyncd.conf
  - python3.4 -m pip install -q git+https://github.com/chfoo/huhhttp#egg=huhhttp --user

before_script:
  - curl -X PUT http://127.0.0.1:5984/archivebot
  - curl -X PUT http://127.0.0.1:5984/archivebot_logs

  - grep -v _rev db/design_docs/archive_urls.json > /tmp/archive_urls.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/archive_urls -d @/tmp/archive_urls.json

  - grep -v _rev db/design_docs/ignore_patterns.json > /tmp/ignore_patterns.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/ignore_patterns -d @/tmp/ignore_patterns.json

  - grep -v _rev db/design_docs/jobs.json > /tmp/jobs.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/jobs -d @/tmp/jobs.json

  - grep -v _rev db/design_docs/user_agents.json > /tmp/user_agents.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/user_agents -d @/tmp/user_agents.json

  # If ircd-hybrid is running (which currently happens with Ubuntu packages),
  # this will restart it.<commit_msg>travis.yml: bundle install plumbing<commit_after># Multi language is not supported so Python needs to be installed ourselves.
# Ruby is default.

language: ruby

rvm:
  - 1.9.3

notifications:
  irc:
    - "irc.efnet.net#archivebot"

before_install:
  - sudo add-apt-repository ppa:fkrull/deadsnakes --yes
  - sudo apt-get update -qq
  - wget https://bootstrap.pypa.io/get-pip.py

install:
  - bundle install --jobs=3 --retry=3 --deployment
  - cd plumbing && bundle install --jobs=3 --retry=3 --deployment
  - sudo apt-get -qq install ircd-hybrid python3.4 python3.4-dev rsync libzmq3-dev
  - sudo python3.4 get-pip.py
  - travis_retry python3.4 -m pip install -q -r pipeline/requirements.txt --user
  - travis_retry python3.4 -m pip install -q nose irc --user
  - sudo cp test/example_rsyncd.conf /etc/rsyncd.conf
  - python3.4 -m pip install -q git+https://github.com/chfoo/huhhttp#egg=huhhttp --user

before_script:
  - curl -X PUT http://127.0.0.1:5984/archivebot
  - curl -X PUT http://127.0.0.1:5984/archivebot_logs

  - grep -v _rev db/design_docs/archive_urls.json > /tmp/archive_urls.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/archive_urls -d @/tmp/archive_urls.json

  - grep -v _rev db/design_docs/ignore_patterns.json > /tmp/ignore_patterns.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/ignore_patterns -d @/tmp/ignore_patterns.json

  - grep -v _rev db/design_docs/jobs.json > /tmp/jobs.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/jobs -d @/tmp/jobs.json

  - grep -v _rev db/design_docs/user_agents.json > /tmp/user_agents.json
  - curl -X PUT http://127.0.0.1:5984/archivebot/_design/user_agents -d @/tmp/user_agents.json

  # If ircd-hybrid is running (which currently happens with Ubuntu packages),
  # this will restart it.
{'fraction_non_alphanumeric': 0.13506567675613934, 'fraction_numerical': 0.04511707595659623, 'mean_word_length': 3.0497109826589597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, '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': '1004389', 'n_tokens_mistral': 1438, 'n_tokens_neox': 1337, 'n_words': 305}