Parcourir la source

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

Community PRs will not break the Travis process
Marek Lewandowski il y a 5 ans
Parent
commit
9fc4f830f3
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  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 ) ) {