<commit_before>language: php

dist: trusty

sudo: false

php:
  - 7.0
  - 7.1

env:
  global:
    - OC_DB_HOSTNAME=localhost
    - OC_DB_USERNAME=root
    - OC_DB_PASSWORD=root
    - OC_DB_DATABASE=tests_opencart
    - OC_DB_DRIVER=mysqli
    - OC_USERNAME=admin
    - OC_PASSWORD=<PASSWORD>
    - OC_EMAIL=<EMAIL>
    - SERVER_PORT=8000
    - SERVER_URL=http://localhost

stages:
  - test
  - deploy

before_script: make before_script

script: composer test

jobs:
  include:
    - stage: deploy
      before_script: skip
      script: make build_archive
      before_deploy:
        - export VERSION=`cat VERSION`
        - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
        - git config --local user.name "retailCRM"
        - git config --local user.email "<EMAIL>"
        - export TRAVIS_TAG=v$VERSION
        - git tag $TRAVIS_TAG
      deploy:
        provider: releases
        api_key: $GITHUB_OAUTH_TOKEN
        skip_cleanup: true
        file: $ARCHIVE_NAME
        if: branch = master AND type = push
        on:
          php: 7.1<commit_msg>test deploy conditions<commit_after>language: php

dist: trusty

sudo: false

php:
  - 7.0
  - 7.1

env:
  global:
    - OC_DB_HOSTNAME=localhost
    - OC_DB_USERNAME=root
    - OC_DB_PASSWORD=root
    - OC_DB_DATABASE=tests_opencart
    - OC_DB_DRIVER=mysqli
    - OC_USERNAME=admin
    - OC_PASSWORD=<PASSWORD>
    - OC_EMAIL=<EMAIL>
    - SERVER_PORT=8000
    - SERVER_URL=http://localhost

stages:
  - test
  - deploy

before_script: make before_script

script: composer test

jobs:
  include:
    - stage: deploy
      before_script: skip
      script: make build_archive
      before_deploy:
        - export VERSION=`cat VERSION`
        - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
        - git config --local user.name "retailCRM"
        - git config --local user.email "<EMAIL>"
        - export TRAVIS_TAG=v$VERSION
        - git tag $TRAVIS_TAG
      deploy:
        provider: releases
        api_key: $GITHUB_OAUTH_TOKEN
        skip_cleanup: true
        file: $ARCHIVE_NAME
        if: (branch = master) AND (type = push) AND (fork = true)
        on:
          php: 7.1
{'fraction_non_alphanumeric': 0.091415313225058, 'fraction_numerical': 0.009280742459396751, 'mean_word_length': 2.232383808095952, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '701611', 'n_tokens_mistral': 800, 'n_tokens_neox': 760, 'n_words': 160}