diff --git a/builder/src/main/java/net/kemitix/checkstyle/ruleset/builder/Rule.java b/builder/src/main/java/net/kemitix/checkstyle/ruleset/builder/Rule.java index 8e8055b..6e6798e 100644 --- a/builder/src/main/java/net/kemitix/checkstyle/ruleset/builder/Rule.java +++ b/builder/src/main/java/net/kemitix/checkstyle/ruleset/builder/Rule.java @@ -95,7 +95,7 @@ public class Rule { * the right string; and a value greater than 0 if the left string is lexicographically greater than the right * string. */ - static int sortByName(final Rule left, final Rule right) { + protected static int sortByName(final Rule left, final Rule right) { return left.getLowerCaseRuleName() .compareTo(right.getLowerCaseRuleName()); } diff --git a/travis-ci/travis-coveralls-report.sh b/travis-ci/travis-coveralls-report.sh index aab1704..5ef727d 100755 --- a/travis-ci/travis-coveralls-report.sh +++ b/travis-ci/travis-coveralls-report.sh @@ -1,3 +1,7 @@ #!/usr/bin/env bash -./mvnw --projects builder,plugin test jacoco:report coveralls:report +## Only send coveralls reports from Travis-CI. Some CIs, like Shippable, lie by setting TRAVIS=true. +## Currently, Shippable, does not set TRAVIS_LANGUAGE, but Travis-CI does. +if [ "$TRAVIS_LANGUAGE" = "java" ];then + ./mvnw --projects builder,plugin test jacoco:report coveralls:report +fi