mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Build/Test tools: In Travis, skip some tests when not on trunk.
This skips time sensitive tests (copyright year and PHP/MySQL version requirements) when tests are run on branches on Travis. Props netweb, jorbin Fixes #39486 git-svn-id: https://develop.svn.wordpress.org/trunk@40241 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
class Tests_External_HTTP_Basic extends WP_UnitTestCase {
|
||||
|
||||
function test_readme() {
|
||||
// This test is designed to only run on trunk/master
|
||||
$this->skipOnAutomatedBranches();
|
||||
|
||||
$readme = file_get_contents( ABSPATH . 'readme.html' );
|
||||
|
||||
preg_match( '#Recommendations.*PHP</a> version <strong>([0-9.]*)#s', $readme, $matches );
|
||||
|
||||
Reference in New Issue
Block a user