Make WordPress Core


Ignore:
Timestamp:
03/08/2017 12:50:43 AM (5 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.6 branch.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

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

    r36856 r40249  
    88
    99    function test_license() {
     10        // This test is designed to only run on trunk/master
     11        $this->skipOnAutomatedBranches();
     12
    1013        $license = file_get_contents( ABSPATH . 'license.txt' );
    1114        preg_match( '#Copyright 2011-(\d+) by the contributors#', $license, $matches );
Note: See TracChangeset for help on using the changeset viewer.