jkphl/elevator

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php
php:
  - 5.6
  - 7.0
  - 7.1
  - hhvm
dist: trusty
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
    vendor/bin/test-reporter; fi;'
  - >-
    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;'
addons:
  code_climate:
    repo_token: e4ac8c5d9b2d98dee422dfcd403dd4c300a1902f7b75947c2ee1b9756c1f1368