Changeset 50697
- Timestamp:
- 04/10/2021 12:05:50 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r50651 r50697 1640 1640 var flags = this.flags; 1641 1641 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 1651 1645 grunt.util.spawn( { 1652 1646 cmd: 'composer', … … 1661 1655 } ); 1662 1656 } ); 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' ]);1668 1657 1669 1658 // Patch task. -
trunk/README.md
r50441 r50697 1 1 # WordPress 2 3 [![Build Status](https://img.shields.io/travis/com/WordPress/wordpress-develop/master.svg)](https://travis-ci.com/WordPress/wordpress-develop)4 2 5 3 Welcome 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 109 109 PHP_FPM_UID: ${PHP_FPM_UID-1000} 110 110 PHP_FPM_GID: ${PHP_FPM_GID-1000} 111 TRAVIS_BRANCH: ${TRAVIS_BRANCH-false}112 TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST-false}113 111 GITHUB_REF: ${GITHUB_REF-false} 114 112 GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME-false} -
trunk/phpcs.xml.dist
r49037 r50697 97 97 </rule> 98 98 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. --> 100 100 <exclude-pattern type="relative">^build/*</exclude-pattern> 101 101 -
trunk/tests/phpunit/includes/abstract-testcase.php
r50441 r50697 182 182 * Allow tests to be skipped on some automated runs. 183 183 * 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, 185 185 * we want to skip tests that only need to run for master. 186 186 */ 187 187 public function skipOnAutomatedBranches() { 188 // https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables189 $travis_branch = getenv( 'TRAVIS_BRANCH' );190 $travis_pull_request = getenv( 'TRAVIS_PULL_REQUEST' );191 192 188 // https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables 193 189 $github_event_name = getenv( 'GITHUB_EVENT_NAME' ); … … 199 195 200 196 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 ) {206 197 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' ); 207 198 }
Note: See TracChangeset
for help on using the changeset viewer.