Skip to content

Commit b679018

Browse files
authored
Merge pull request #284 from jeffgbutler/master
Fix Sonar Coverage
2 parents bc04651 + 3c6ab99 commit b679018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

travis/after_success.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright 2016-2019 the original author or authors.
3+
# Copyright 2016-2020 the original author or authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -35,15 +35,15 @@ echo "Current commit detected: ${commit_message}"
3535
if [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ]; then
3636
if [ $TRAVIS_JDK_VERSION == "openjdk8" ]; then
3737
# coveralls maven is stuck at JDK8
38-
./mvnw clean test jacoco:report coveralls:report -q
38+
./mvnw test jacoco:report coveralls:report -q
3939
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
4040
fi
4141

4242
if [ $TRAVIS_JDK_VERSION == "openjdk11" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
4343
# Run Sonar Analysis
44-
./mvnw sonar:sonar -Dsonar.projectKey=mybatis_mybatis-dynamic-sql
44+
./mvnw test jacoco:report sonar:sonar -Dsonar.projectKey=mybatis_mybatis-dynamic-sql
4545
# Deploy to Sonatype
46-
./mvnw clean deploy -q --settings ./travis/settings.xml
46+
./mvnw deploy -q --settings ./travis/settings.xml
4747
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
4848
else
4949
echo "Not a master branch commit so no deployment of the new snapshot needed"

0 commit comments

Comments
 (0)