From e878ba502eb415c2f62c4d72e0f56e659b51ac4a Mon Sep 17 00:00:00 2001 From: SonataCI Date: Sat, 28 May 2016 17:04:59 +0200 Subject: [PATCH] DevKit updates --- .travis.yml | 3 +++ .travis/after_success_test.sh | 4 ++++ .travis/install_test.sh | 4 ++++ Makefile | 2 +- README.md | 17 ++++++++++++++--- 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100755 .travis/after_success_test.sh diff --git a/.travis.yml b/.travis.yml index e1eca9cd..440110d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,3 +65,6 @@ before_script: - if [ -x .travis/before_script_${TARGET}.sh ]; then .travis/before_script_${TARGET}.sh; fi; script: make $TARGET + +after_success: + - if [ -x .travis/after_success_${TARGET}.sh ]; then .travis/after_success_${TARGET}.sh; fi; diff --git a/.travis/after_success_test.sh b/.travis/after_success_test.sh new file mode 100755 index 00000000..87158518 --- /dev/null +++ b/.travis/after_success_test.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +set -ev + +coveralls -v diff --git a/.travis/install_test.sh b/.travis/install_test.sh index f496ff41..b692108b 100755 --- a/.travis/install_test.sh +++ b/.travis/install_test.sh @@ -12,6 +12,10 @@ fi wget "https://phar.phpunit.de/${PHPUNIT_PHAR}" --output-document="${HOME}/bin/phpunit" chmod u+x "${HOME}/bin/phpunit" +# Coveralls client install +wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar --output-document="${HOME}/bin/coveralls" +chmod u+x "${HOME}/bin/coveralls" + # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 if [ "${COMPOSER_FLAGS}" = '--prefer-lowest' ]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet diff --git a/Makefile b/Makefile index 0394dd00..c0e18e4f 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ all: @echo "Please choose a task." test: - phpunit -c phpunit.xml.dist + phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml docs: cd Resources/doc && sphinx-build -W -b html -d _build/doctrees . _build/html diff --git a/README.md b/README.md index 5b1b27fa..60e5bb00 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ Symfony SonataBlockBundle [![Monthly Downloads](https://poser.pugx.org/sonata-project/block-bundle/d/monthly)](https://packagist.org/packages/sonata-project/block-bundle) [![Daily Downloads](https://poser.pugx.org/sonata-project/block-bundle/d/daily)](https://packagist.org/packages/sonata-project/block-bundle) -3.x status: [![Build Status](https://travis-ci.org/sonata-project/SonataBlockBundle.svg?branch=3.x)](https://travis-ci.org/sonata-project/SonataBlockBundle) - -master status: [![Build Status](https://travis-ci.org/sonata-project/SonataBlockBundle.svg?branch=master)](https://travis-ci.org/sonata-project/SonataBlockBundle) +Branch | Travis | Coveralls | +------ | ------ | --------- | +3.x | [![Build Status][travis_stable_badge]][travis_stable_link] | [![Coverage Status][coveralls_stable_badge]][coveralls_stable_link] | +master | [![Build Status][travis_unstable_badge]][travis_unstable_link] | [![Coverage Status][coveralls_unstable_badge]][coveralls_unstable_link] | ## Documentation @@ -28,3 +29,13 @@ If you think you find a bug or you have a feature idea to propose, feel free to ## License This package is available under the [MIT license](LICENSE). + +[travis_stable_badge]: https://travis-ci.org/sonata-project/SonataBlockBundle.svg?branch=3.x +[travis_stable_link]: https://travis-ci.org/sonata-project/SonataBlockBundle +[travis_unstable_badge]: https://travis-ci.org/sonata-project/SonataBlockBundle.svg?branch=master +[travis_unstable_link]: https://travis-ci.org/sonata-project/SonataBlockBundle + +[coveralls_stable_badge]: https://coveralls.io/repos/github/sonata-project/SonataBlockBundle/badge.svg?branch=3.x +[coveralls_stable_link]: https://coveralls.io/github/sonata-project/SonataBlockBundle?branch=3.x +[coveralls_unstable_badge]: https://coveralls.io/repos/github/sonata-project/SonataBlockBundle/badge.svg?branch=master +[coveralls_unstable_link]: https://coveralls.io/github/sonata-project/SonataBlockBundle?branch=master