File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
4646else
4747 echo " Travis Pull Request: $TRAVIS_PULL_REQUEST "
4848 echo " Travis Branch: $TRAVIS_BRANCH "
4949 echo " Travis build skipped"
50- fi
50+ fi
You can’t perform that action at this time.
0 commit comments