Make WordPress Core


Ignore:
Timestamp:
03/08/2017 12:41:15 AM (6 years ago)
Author:
johnbillion
Message:

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

Merges [40241] to the 4.2 branch.

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

  • branches/4.2/tests/phpunit/tests/basic.php

    r31622 r40245  
    3030
    3131    function test_license() {
     32        // This test is designed to only run on trunk/master
     33        $this->skipOnAutomatedBranches();
     34
    3235        $license = file_get_contents( ABSPATH . 'license.txt' );
    3336        preg_match( '#Copyright (\d+) by the contributors#', $license, $matches );
Note: See TracChangeset for help on using the changeset viewer.