Changeset 49267
- Timestamp:
- 10/21/2020 07:55:17 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docker-compose.yml
r47912 r49267 111 111 TRAVIS_BRANCH: ${TRAVIS_BRANCH-false} 112 112 TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST-false} 113 GITHUB_REF: ${GITHUB_REF-false} 114 GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME-false} 113 115 114 116 volumes: -
trunk/tests/phpunit/includes/abstract-testcase.php
r49264 r49267 194 194 $github_ref = getenv( 'GITHUB_REF' ); 195 195 196 if ( ( ! $travis_branch || ! $travis_pull_request ) && ! $github_event_name ) { 197 return; 198 } 199 200 if ( ( 'master' !== $travis_branch || 'false' !== $travis_pull_request ) && empty( $github_event_name ) ) { 201 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' ); 202 } elseif ( in_array( $github_event_name, array( 'pull_request', 'pull_request_target' ), true ) || 'refs/heads/master' !== $github_ref ) { 203 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' ); 196 if ( 'false' !== $github_event_name ) { 197 // We're on GitHub Actions. 198 $skipped = array( 'pull_request', 'pull_request_target' ); 199 200 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 - GitHub only' ); 202 } 203 } elseif ( 'false' !== $travis_branch ) { 204 // We're on Travis CI. 205 if ( 'master' !== $travis_branch || 'false' !== $travis_pull_request ) { 206 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master - Travis only' ); 207 } 204 208 } 205 209 }
Note: See TracChangeset
for help on using the changeset viewer.