Jeroen De Dauw has submitted this change and it was merged. Change subject: Add coveralls.io support to TravisCI config ......................................................................
Add coveralls.io support to TravisCI config Change-Id: I04b690fafc38ed8918c13224c43f6fc034aeadab --- A .coveralls.yml M .gitignore M .travis.sh M .travis.yml 4 files changed, 24 insertions(+), 7 deletions(-) Approvals: Jeroen De Dauw: Looks good to me, approved jenkins-bot: Verified diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..195eacc --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,4 @@ +# for php-coveralls +service_name: travis-ci +src_dir: includes +coverage_clover: build/logs/clover.xml \ No newline at end of file diff --git a/.gitignore b/.gitignore index a3f0ae7..410dc92 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ *.kate-swp vendor/ +build/ + composer.phar composer.lock @@ -10,4 +12,5 @@ !.gitreview !.travis.yml -!.travis.sh \ No newline at end of file +!.travis.sh +!.coveralls.yml \ No newline at end of file diff --git a/.travis.sh b/.travis.sh index 846b9ac..b50ddca 100644 --- a/.travis.sh +++ b/.travis.sh @@ -2,6 +2,8 @@ set -x +originalDirectory=pwd + cd .. git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git phase3 --depth 1 @@ -11,15 +13,20 @@ mysql -e 'create database its_a_mw;' php maintenance/install.php --dbtype $DBTYPE --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin -cd extensions -composer create-project mediawiki/semantic-mediawiki:dev-master SemanticMediaWiki --keep-vcs +composer require mediawiki/semantic-mediawiki:dev-master +composer require satooshi/php-coveralls:dev-master -cd .. -echo 'require_once( __DIR__ . "/extensions/SemanticMediaWiki/SemanticMediaWiki.php" );' >> LocalSettings.php +# Replace SemanticMediaWiki with the version that should be tested +rm -rf SemanticMediaWiki +mkdir SemanticMediaWiki +cp -r $originalDirectory/* SemanticMediaWiki + +echo 'require_once( __DIR__ . "/vendor/mediawiki/semantic-mediawiki/SemanticMediaWiki.php" );' >> LocalSettings.php echo 'error_reporting(E_ALL| E_STRICT);' >> LocalSettings.php echo 'ini_set("display_errors", 1);' >> LocalSettings.php echo '$wgShowExceptionDetails = true;' >> LocalSettings.php echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php +echo "putenv( 'MW_INSTALL_PATH=$(pwd)' );" >> LocalSettings.php php maintenance/update.php --quick diff --git a/.travis.yml b/.travis.yml index 776950b..ec2d780 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,11 @@ - bash .travis.sh script: - - cd ../phase3/tests/phpunit - - ./phpunit.php --group SMWExtension + - cd ../phase3/tests/phpunit ; ./phpunit.php --group SMWExtension + - cd ../../extensions/SemanticMediaWiki ; phpunit --coverage-clover build/logs/clover.xml + +after_script: + - php vendor/bin/coveralls -v notifications: irc: -- To view, visit https://gerrit.wikimedia.org/r/77852 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I04b690fafc38ed8918c13224c43f6fc034aeadab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticMediaWiki Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <[email protected]> Gerrit-Reviewer: Jeroen De Dauw <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
