You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
964B

  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache/files
  6. matrix:
  7. include:
  8. - php: hhvm
  9. - php: 5.3
  10. - php: 5.4
  11. - php: 5.5
  12. - php: 5.6
  13. - php: nightly
  14. allow_failures:
  15. - php: nightly
  16. - php: hhvm
  17. fast_finish: true
  18. before_script:
  19. - composer self-update
  20. - composer install --prefer-source
  21. - composer require --dev --no-update phpunit/phpunit:@stable phpunit/php-code-coverage:@stable satooshi/php-coveralls:@dev
  22. - composer update --prefer-source phpunit/php-code-coverage satooshi/php-coveralls composer/composer
  23. - mkdir -p ./build/logs
  24. script:
  25. - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
  26. after_script:
  27. - 'echo ''src_dir: .'' >> ./.coveralls.yml'
  28. - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ./vendor/bin/coveralls -v; fi;'
  29. notifications:
  30. email: false