sudo: false

language: php

matrix:
    fast_finish: true
    include:
        # Need to use Precise for PHP 5.3
        - php: 5.3
          env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
          dist: precise
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 7.0
        - php: 7.1
        - php: 7.2
        - php: hhvm

before_install:
 - travis_retry wget https://scrutinizer-ci.com/ocular.phar
 - mkdir -p build/logs

install:
 - travis_retry composer update --no-interaction $COMPOSER_FLAGS

script:
  - ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_success:
  - [[ -f vendor/bin/php-coveralls ]] && COVERALLS_PATH=vendor/bin/php-coveralls || COVERALLS_PATH=vendor/bin/coveralls
  - travis_retry php $COVERALLS_PATH -v --exclude-no-stmt
  - travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml


sudo: false

language: php

matrix:
    fast_finish: true
    include:
        # Need to use Precise for PHP 5.3
        - php: 5.3
          env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
          dist: precise
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 7.0
        - php: 7.1
        - php: 7.2
        - php: hhvm

before_install:
 - travis_retry wget https://scrutinizer-ci.com/ocular.phar
 - mkdir -p build/logs

install:
 - travis_retry composer update --no-interaction $COMPOSER_FLAGS

script:
  - ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_success:
  - "[[ -f vendor/bin/php-coveralls ]] && COVERALLS_PATH=vendor/bin/php-coveralls || COVERALLS_PATH=vendor/bin/coveralls"
  - travis_retry php $COVERALLS_PATH -v --exclude-no-stmt
  - travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml


Put bash command inside double quotes
Put bash command inside double quotes

Invalid yaml