<commit_before>language: php


sudo: false


php:
  - 5.5
  - 5.6
  - 7.0


sudo: false


env:
  matrix:
    - DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'
    - DB=pgsql db_dsn='postgres://postgres@127.0.0.1/suitcoda_test'
  global:
    - DEFAULT=1
    - SETUP=BASIC


matrix:
  fast_finish: true

  include:
    - php: 5.5
      env: SETUP=STABLE DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.5
      env: SETUP=LOWEST DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.6
      env: SETUP=STABLE DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.6
      env: SETUP=LOWEST DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.5.9
      env: COVERALLS=1

    - php: 7.0
      env: PHPCS=1

    - php: hhvm
      env: HHVM=1 DB=pgsql db_dsn='postgres://postgres@127.0.0.1/suitcoda_test'

    - php: hhvm
      env: HHVM=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

  allow_failures:
    - env: COVERALLS=1
    - php: hhvm


before_script:
  - cp .env.example .env
  - composer self-update

  - if [[ $SETUP != 'BASIC' ]]; then git config --global core.filemode false; fi
  - travis_retry composer install --no-interaction --prefer-source
  - if [[ $SETUP = 'STABLE' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
  - if [[ $SETUP = 'LOWEST' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi

  - php artisan key:generate

  - if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE suitcoda_test;'; fi
  - if [[ $DB = 'pgsql' ]]; then psql -c 'CREATE DATABASE suitcoda_test;' -U postgres; fi

  - if [[ $COVERALLS = '1' ]]; then composer require --dev satooshi/php-coveralls:dev-master; fi
  - if [[ $COVERALLS = '1' ]]; then mkdir -p build/logs; fi

  - phpenv rehash
  - set +H


script:
  - if [[ $DEFAULT = '1' ]]; then vendor/bin/phpunit; fi
  - if [[ $PHPCS = '1' ]]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./app ./tests; fi

  - if [[ $COVERALLS = '1' ]]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi


after_script:
  - if [[ $COVERALLS = '1' ]]; then bash <(curl -s https://codecov.io/bash); fi


notifications:
  email: false
<commit_msg>Remove unused php-coveralls requirement in the travis-ci configuration<commit_after>language: php


sudo: false


php:
  - 5.5
  - 5.6
  - 7.0


sudo: false


env:
  matrix:
    - DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'
    - DB=pgsql db_dsn='postgres://postgres@127.0.0.1/suitcoda_test'
  global:
    - DEFAULT=1
    - SETUP=BASIC


matrix:
  fast_finish: true

  include:
    - php: 5.5
      env: SETUP=STABLE DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.5
      env: SETUP=LOWEST DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.6
      env: SETUP=STABLE DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.6
      env: SETUP=LOWEST DEFAULT=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

    - php: 5.5.9
      env: COVERALLS=1

    - php: 7.0
      env: PHPCS=1

    - php: hhvm
      env: HHVM=1 DB=pgsql db_dsn='postgres://postgres@127.0.0.1/suitcoda_test'

    - php: hhvm
      env: HHVM=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/suitcoda_test'

  allow_failures:
    - env: COVERALLS=1
    - php: hhvm


before_script:
  - cp .env.example .env
  - composer self-update

  - if [[ $SETUP != 'BASIC' ]]; then git config --global core.filemode false; fi
  - travis_retry composer install --no-interaction --prefer-source
  - if [[ $SETUP = 'STABLE' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
  - if [[ $SETUP = 'LOWEST' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi

  - php artisan key:generate

  - if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE suitcoda_test;'; fi
  - if [[ $DB = 'pgsql' ]]; then psql -c 'CREATE DATABASE suitcoda_test;' -U postgres; fi

  - if [[ $COVERALLS = '1' ]]; then mkdir -p build/logs; fi

  - phpenv rehash
  - set +H


script:
  - if [[ $DEFAULT = '1' ]]; then vendor/bin/phpunit; fi
  - if [[ $PHPCS = '1' ]]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./app ./tests; fi

  - if [[ $COVERALLS = '1' ]]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi


after_script:
  - if [[ $COVERALLS = '1' ]]; then bash <(curl -s https://codecov.io/bash); fi


notifications:
  email: false

{'fraction_non_alphanumeric': 0.16486135181975736, 'fraction_numerical': 0.030979202772963604, 'mean_word_length': 2.7384615384615385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 16, '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': '5230902', 'n_tokens_mistral': 1998, 'n_tokens_neox': 1890, 'n_words': 408}