<commit_before>sudo: false

addons:
  apt:
    packages:
      - expect-dev  # provides unbuffer utility
      - python-lxml # because pip installation is slow

language: python

python:
  - "2.7"

cache:
  - pip
  - apt

env:
  matrix:
  - LINT_CHECK="1"
  - ODOO_REPO="odoo/odoo" TESTS="1"
  - ODOO_REPO="OCA/OCB" TESTS="1"
  - TRANSIFEX="1" TRANSIFEX_USER='<EMAIL>'
  - DOCS="1"
  global:
  - VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" DOCS="0"
    # Token for Travis docs builds generated with:
    # $ travis encrypt GH_TOKEN=xxxxxxx -r OCA/connector-magento
    # Where xxxxxxx  is the GitHub token which needs only the 'public_repo'
    # right.
  - secure: "<KEY>
    # transifex
  - secure: "<KEY>

virtualenv:
  system_site_packages: true

install:
  - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  - travis_install_nightly
  - pip install magento
  - pip install beautifulsoup4
  - pip install sphinx sphinx_bootstrap_theme sphinx-intl odoo-sphinx-autodoc
  - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc
  # DO NOT MERGE. Only used to get a correct build in the WIP branch
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "travis"
  - pushd ${HOME}/connector
  - git pull --no-edit origin pull/46/head
  - git pull --no-edit origin pull/47/head
  - popd
  - pushd ${HOME}/e-commerce
  - git pull --no-edit origin pull/35/head
  - git pull --no-edit origin pull/34/head
  - popd
  - pushd ${HOME}/connector-ecommerce
  - git pull --no-edit origin pull/18/head
  - popd

script:
  - if [ "$DOCS" != "1" ] ; then travis_run_tests; fi
  - if [ "$DOCS" == "1" ] ; then ./.travis_build_doc; fi

after_success:
  - if [ "$DOCS" != "1" ] ; then travis_after_test_success; fi
  - if [ "$DOCS" == "1" ] ; then ./.travis_push_doc; fi<commit_msg>Remove merged PR from .travis.yml<commit_after>sudo: false

addons:
  apt:
    packages:
      - expect-dev  # provides unbuffer utility
      - python-lxml # because pip installation is slow

language: python

python:
  - "2.7"

cache:
  - pip
  - apt

env:
  matrix:
  - LINT_CHECK="1"
  - ODOO_REPO="odoo/odoo" TESTS="1"
  - ODOO_REPO="OCA/OCB" TESTS="1"
  - TRANSIFEX="1" TRANSIFEX_USER='<EMAIL>'
  - DOCS="1"
  global:
  - VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" DOCS="0"
    # Token for Travis docs builds generated with:
    # $ travis encrypt GH_TOKEN=xxxxxxx -r OCA/connector-magento
    # Where xxxxxxx  is the GitHub token which needs only the 'public_repo'
    # right.
  - secure: "<KEY>
    # transifex
  - secure: "<KEY>

virtualenv:
  system_site_packages: true

install:
  - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  - travis_install_nightly
  - pip install magento
  - pip install beautifulsoup4
  - pip install sphinx sphinx_bootstrap_theme sphinx-intl odoo-sphinx-autodoc
  - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc
  # DO NOT MERGE. Only used to get a correct build in the WIP branch
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "travis"
  - pushd ${HOME}/connector
  - git pull --no-edit origin pull/47/head
  - popd
  - pushd ${HOME}/e-commerce
  - git pull --no-edit origin pull/35/head
  - git pull --no-edit origin pull/34/head
  - popd
  - pushd ${HOME}/connector-ecommerce
  - git pull --no-edit origin pull/18/head
  - popd

script:
  - if [ "$DOCS" != "1" ] ; then travis_run_tests; fi
  - if [ "$DOCS" == "1" ] ; then ./.travis_build_doc; fi

after_success:
  - if [ "$DOCS" != "1" ] ; then travis_after_test_success; fi
  - if [ "$DOCS" == "1" ] ; then ./.travis_push_doc; fi
{'fraction_non_alphanumeric': 0.14304291287386217, 'fraction_numerical': 0.014564369310793237, 'mean_word_length': 3.010427528675704, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 4, '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': '4569596', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1452, 'n_words': 356}