diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..bc71b62 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +coverage_clover: clover.xml +json_path: coveralls-upload.json diff --git a/.gitattributes b/.gitattributes index 016e39f..109a2fa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,10 @@ # .gitattributes tests/ export-ignore +.coveralls.yml export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.travis.yml export-ignore +phpunit.xml.dist export-ignore # Auto detect text files and perform LF normalization * text=auto diff --git a/.travis.yml b/.travis.yml index 8ad3614..710820a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,19 @@ php: - 7.0 - hhvm +matrix: + include: + - php: 5.4 + env: dependencies=lowest + before_script: - - composer require satooshi/php-coveralls:dev-master --dev --no-progress + - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi + - if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install -n ; fi + - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi; script: - - mkdir -p build/logs - - phpunit --coverage-clover build/logs/clover.xml + - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi + - if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then vendor/bin/phpunit ; fi after_script: - - php vendor/bin/coveralls -v + - if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi