<commit_before>language: python
python:
- '3.4'

env:
- MOZ_HEADLESS=1
addons:
  firefox: latest

before_install:
  - wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
  - mkdir geckodriver
  - tar -xzf geckodriver*.tar.gz -C geckodriver
  - export PATH=$PATH:$PWD/geckodriver

install:
  - python setup.py install
  - pip install -r requirements/heroku_requirements.txt

script:
  - pytest --cov=koalixcrm --cov-branch --cov-report xml --cov-report term -m "not version_increase"
  - python-codacy-coverage -r coverage.xml
  - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest -m version_increase; fi

# Deployment
deploy:
  provider: heroku
  api_key:
    secure: $HEROKU_API_KEY

  app: koalix
  on:
    branch: Feature_Issue220
    repo: willyudi/koalixcrm
  run:
  - "heroku config:set DISABLE_COLLECTSTATIC=1"
  - "python manage.py collectstatic --settings=projectsettings.settings.heroku_settings --noinput"
  - "python manage.py migrate --settings=projectsettings.settings.heroku_settings"<commit_msg>[Issue #220] Restored the previous travis.yaml<commit_after>language: python
python:
- '3.4'

env:
- MOZ_HEADLESS=1
addons:
  firefox: latest

before_install:
  - wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
  - mkdir geckodriver
  - tar -xzf geckodriver*.tar.gz -C geckodriver
  - export PATH=$PATH:$PWD/geckodriver

install:
  - python setup.py install
  - pip install -r requirements/heroku_requirements.txt

script:
  - pytest --cov=koalixcrm --cov-branch --cov-report xml --cov-report term -m "not version_increase"
  - python-codacy-coverage -r coverage.xml
  - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest -m version_increase; fi

# Deployment
deploy:
  provider: heroku
  api_key:
    secure: $HEROKU_API_KEY

  app: koalix-crm
  on:
    repo: scaphilo/koalixcrm
  run:
  - "python manage.py collectstatic --settings=projectsettings.settings.heroku_settings --noinput"
  - "python manage.py migrate --settings=projectsettings.settings.heroku_settings"
{'fraction_non_alphanumeric': 0.11975190839694656, 'fraction_numerical': 0.015744274809160304, 'mean_word_length': 3.820689655172414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3158163', 'n_tokens_mistral': 807, 'n_tokens_neox': 774, 'n_words': 155}