Explorar o código

Internal: Community PRs will not break the Travis process. Closes #7745.

Community PRs will not break the Travis process
Marek Lewandowski %!s(int64=5) %!d(string=hai) anos
pai
achega
9fc4f830f3
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      scripts/continuous-integration-script.js

+ 9 - 1
scripts/continuous-integration-script.js

@@ -91,7 +91,15 @@ for ( const fullPackageName of packages ) {
 }
 
 console.log( 'Uploading combined code coverage report…' );
-childProcess.execSync( 'npx coveralls < .out/combined_lcov.info' );
+
+// Comparing "organization/ckeditor5" and "ckeditor/ckeditor5".
+if ( process.env.TRAVIS_PULL_REQUEST_SLUG === process.env.TRAVIS_REPO_SLUG ) {
+	childProcess.execSync( 'npx coveralls < .out/combined_lcov.info' );
+} else {
+	console.log( 'Since the PR comes from the community, we do not upload code coverage report.' );
+	console.log( 'Read more why: https://github.com/ckeditor/ckeditor5/issues/7745.' );
+}
+
 console.log( 'Done' );
 
 if ( Object.values( failedChecks ).some( checksSet => checksSet.size > 0 ) ) {