jkphl/rdfa-lite-microdata

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php
php:
  - 5.6
  - 7
  - hhvm
env:
  - APP_ENV=development
matrix:
  allow_failures:
    - php: hhvm
before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source
  - touch .env
  - >-
    if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then echo 'date.timezone =
    Europe/Berlin' >> /etc/hhvm/php.ini; fi;
  - >-
    if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo 'date.timezone =
    Europe/Berlin' >> ~/.phpenv/versions/$(phpenv
    version-name)/etc/conf.d/travis.ini; fi;
script:
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit;
    fi;'
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit
    --coverage-clover build/logs/clover.xml; fi;'
after_script:
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget
    https://scrutinizer-ci.com/ocular.phar; fi;'
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar
    code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php
    vendor/bin/coveralls -v; fi;'
  - >-
    bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then
    vendor/bin/test-reporter; fi;'
addons:
  code_climate:
    repo_token: 6c23813272ee3f41ae005a374bec25afd7f7683dc9c669b67b2cff8b1ddcc706