WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/08/2017 12:00:47 AM (3 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/basic.php

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