language: php

matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env:
        - TEST_COVERAGE=true

install:
  - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls ; fi

before_script:
  - composer self-update
  - composer install --prefer-source

script:
  - if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
  - if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi


language: php

matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env:
        - TEST_COVERAGE=true

install:
  - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls ; fi

before_script:
  - composer self-update
  - composer install --prefer-source

script:
  - if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
  - if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi

after_script:
  - if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/coveralls -v ; fi

Add missing after_script command to upload coveralls stats
Add missing after_script command to upload coveralls stats
