diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3a357b9..17f8bf6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -111,10 +111,10 @@ We probably find a solution for that. ## Continuous Integration -Automated tests are run using [Travis CI](https://travis-ci.org/stklcode/wp-liveticker2) for every commit including pull requests. +Automated tests are run using [Travis CI](https://travis-ci.org/stklcode/wp-liveticker) for every commit including pull requests. They ensure compatibility with the supported PHP versions and the WP Coding Standards. -There is also a semi-automated code quality analysis pushing results to [SonarCloud](https://sonarcloud.io/dashboard?id=de.stklcode.web.wordpress.plugins%3Awp-liveticker2). +There is also a semi-automated code quality analysis pushing results to [SonarCloud](https://sonarcloud.io/dashboard?id=de.stklcode.web.wordpress.plugins%3Awp-liveticker). Keep in mind that the ruleset is not yet perfect, so not every minor issue has to be fixed immediately. ## Still Open Questions? diff --git a/README.md b/README.md index 0546ce6..b226a8c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +[![Build Status](https://travis-ci.org/stklcode/wp-liveticker.svg?branch=master)](https://travis-ci.org/stklcode/wp-liveticker) +[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=de.stklcode.web.wordpress.plugins%3Awp-liveticker&metric=alert_status)](https://sonarcloud.io/dashboard?id=de.stklcode.web.wordpress.plugins%3Awp-liveticker) +[![Packagist Version](https://img.shields.io/packagist/v/stklcode/wp-liveticker.svg)](https://packagist.org/packages/stklcode/wp-liveticker) +[![License](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://github.com/stklcode/wp-liveticker/blob/master/LICENSE.md) + # Liveticker (by stklcode) * Contributors: Stefan Kalscheuer diff --git a/RoboFile.php b/RoboFile.php index 192bf48..ddce5a9 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -146,6 +146,12 @@ class RoboFile extends Tasks { $this->_copy( 'stklcode-liveticker.php', $this->target_dir . '/' . $this->final_name . '/stklcode-liveticker.php' ); $this->_copy( 'README.md', $this->target_dir . '/' . $this->final_name . '/README.md' ); $this->_copy( 'LICENSE.md', $this->target_dir . '/' . $this->final_name . '/LICENSE.md' ); + + // Remove content before title (e.g. badges) from README file. + $this->taskReplaceInFile( $this->target_dir . '/' . $this->final_name . '/README.md' ) + ->regex( '/^[^\\#]*/' ) + ->to( '' ) + ->run(); } /**