Make WordPress Core

Changeset 50697


Ignore:
Timestamp:
04/10/2021 12:05:50 PM (3 years ago)
Author:
ocean90
Message:

Build/Test Tools: Remove remaining Travis CI references.

  • Remove travis: tasks in Gruntfile.js.
  • Remove status badge in README.md that comes from Travis CI via shields.io.
  • Remove Travis CI related skipping in the WP_UnitTestCase_Base::skipOnAutomatedBranches() test method and related Docker environment variables.

Props johnbillion, SergeyBiryukov, ocean90.
See #52161.
Fixes #52666.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r50651 r50697  
    16401640        var flags = this.flags;
    16411641        var args = changedFiles.php;
    1642         if ( flags.travisErrors ) {
    1643             // We can check the entire codebase for coding standards errors.
    1644             args = [ 'lint:errors' ];
    1645         } else if ( flags.travisWarnings ) {
    1646             // We can check the tests directory for errors and warnings.
    1647             args = [ 'lint', 'tests' ];
    1648         } else {
    1649             args.unshift( 'lint' );
    1650         }
     1642
     1643        args.unshift( 'lint' );
     1644
    16511645        grunt.util.spawn( {
    16521646            cmd: 'composer',
     
    16611655        } );
    16621656    } );
    1663 
    1664     // Travis CI tasks.
    1665     grunt.registerTask('travis:js', 'Runs JavaScript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ]);
    1666     grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 'build', 'phpunit' ]);
    1667     grunt.registerTask('travis:phpcs', 'Runs PHP Coding Standards Travis CI tasks.', [ 'format:php:error', 'lint:php:travisErrors:error', 'lint:php:travisWarnings:error' ]);
    16681657
    16691658    // Patch task.
  • trunk/README.md

    r50441 r50697  
    11# WordPress
    2 
    3 [![Build Status](https://img.shields.io/travis/com/WordPress/wordpress-develop/master.svg)](https://travis-ci.com/WordPress/wordpress-develop)
    42
    53Welcome to the WordPress development repository! Please check out the [contributor handbook](https://make.wordpress.org/core/handbook/) for information about how to open bug reports, contribute patches, test changes, write documentation, or get involved in any way you can.
  • trunk/docker-compose.yml

    r49836 r50697  
    109109      PHP_FPM_UID: ${PHP_FPM_UID-1000}
    110110      PHP_FPM_GID: ${PHP_FPM_GID-1000}
    111       TRAVIS_BRANCH: ${TRAVIS_BRANCH-false}
    112       TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST-false}
    113111      GITHUB_REF: ${GITHUB_REF-false}
    114112      GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME-false}
  • trunk/phpcs.xml.dist

    r49037 r50697  
    9797    </rule>
    9898
    99     <!-- Exclude the build folder in the current directory, as Travis puts the checkout in a build directory. -->
     99    <!-- Exclude the build folder in the current directory. -->
    100100    <exclude-pattern type="relative">^build/*</exclude-pattern>
    101101
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r50441 r50697  
    182182     * Allow tests to be skipped on some automated runs.
    183183     *
    184      * For test runs on Travis/GitHub Actions for something other than trunk/master,
     184     * For test runs on GitHub Actions for something other than trunk/master,
    185185     * we want to skip tests that only need to run for master.
    186186     */
    187187    public function skipOnAutomatedBranches() {
    188         // https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
    189         $travis_branch       = getenv( 'TRAVIS_BRANCH' );
    190         $travis_pull_request = getenv( 'TRAVIS_PULL_REQUEST' );
    191 
    192188        // https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables
    193189        $github_event_name = getenv( 'GITHUB_EVENT_NAME' );
     
    199195
    200196            if ( in_array( $github_event_name, $skipped, true ) || 'refs/heads/master' !== $github_ref ) {
    201                 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' );
    202             }
    203         } elseif ( $travis_branch && 'false' !== $travis_branch ) {
    204             // We're on Travis CI.
    205             if ( 'master' !== $travis_branch || 'false' !== $travis_pull_request ) {
    206197                $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' );
    207198            }
Note: See TracChangeset for help on using the changeset viewer.