Skip to content

Commit 978e60b

Browse files
committed
Don't run coveralls in forks
1 parent f54da73 commit 978e60b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

travis/after_success.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ 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 == "oraclejdk8" ]; then
35+
if [ $TRAVIS_JDK_VERSION == "oraclejdk8" ] && [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ]; then
3636

37-
./mvnw clean test jacoco:report coveralls:report
37+
./mvnw clean test jacoco:report coveralls:report -q
3838

39-
if [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
39+
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
4040
# Deploy to Sonatype
4141
./mvnw clean deploy -q --settings ./travis/settings.xml
4242
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
4343
else
44-
echo "Java Version does not support additional activity for travis CI"
44+
echo "Not a master branch commit so no deployment of the new snapshot needed"
4545
fi
4646
else
4747
echo "Travis Pull Request: $TRAVIS_PULL_REQUEST"
4848
echo "Travis Branch: $TRAVIS_BRANCH"
4949
echo "Travis build skipped"
50-
fi
50+
fi

0 commit comments

Comments
 (0)