<commit_before>language: php
php:
  - 5.3
  - 5.4
  - 5.5

env:
  global:
    - CORE_BRANCH=master
  matrix:
    - DB=sqlite

before_install:
  - wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
  - bash ./before_install.sh ocusagecharts $CORE_BRANCH $DB
  - cd ../core
  - php occ app:enable ocusagecharts

script:
  # Test lint
  - cd apps/ocusagecharts
  - sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"

  # Run phpunit tests
  - cd tests
  - phpunit --configuration phpunit.xml

  # Create coverage report
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover<commit_msg>Added outputting coverage<commit_after>language: php
php:
  - 5.3
  - 5.4
  - 5.5

env:
  global:
    - CORE_BRANCH=master
  matrix:
    - DB=sqlite

before_install:
  - wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
  - bash ./before_install.sh ocusagecharts $CORE_BRANCH $DB
  - cd ../core
  - php occ app:enable ocusagecharts

script:
  # Test lint
  - cd apps/ocusagecharts
  - sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"

  # Run phpunit tests
  - cd tests
  - phpunit --configuration phpunit.xml --coverage-clover=coverage.clover

  # Create coverage report
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
{'fraction_non_alphanumeric': 0.12240663900414937, 'fraction_numerical': 0.008298755186721992, 'mean_word_length': 2.9752747252747254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1005238', 'n_tokens_mistral': 564, 'n_tokens_neox': 531, 'n_words': 116}