Skip to content

Commit e6e1295

Browse files
committed
Coveralls Maven Plugin is stuck at JDK 8
1 parent 2ac18a9 commit e6e1295

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

travis/after_success.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ echo "Current commit detected: ${commit_message}"
3232
# a. Use -q option to only display Maven errors and warnings.
3333
# b. Use --settings to force the usage of our "settings.xml" file.
3434

35-
if [ $TRAVIS_JDK_VERSION == "openjdk11" ] && [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ]; then
36-
37-
./mvnw clean test jacoco:report coveralls:report -q
38-
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
35+
if [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ]; then
36+
if [ $TRAVIS_JDK_VERSION == "openjdk8" ]; then
37+
# coveralls maven is stuck at JDK8
38+
./mvnw clean test jacoco:report coveralls:report -q
39+
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
40+
fi
3941

40-
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
42+
if [ $TRAVIS_JDK_VERSION == "openjdk11" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
4143
# Run Sonar Analysis
4244
./mvnw sonar:sonar -Dsonar.projectKey=mybatis_mybatis-dynamic-sql
4345
# Deploy to Sonatype

0 commit comments

Comments
 (0)