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}"
32
32
# a. Use -q option to only display Maven errors and warnings.
33
33
# b. Use --settings to force the usage of our "settings.xml" file.
34
34
35
- if [ $TRAVIS_JDK_VERSION == " oraclejdk8" ]; then
35
+ if [ $TRAVIS_JDK_VERSION == " oraclejdk8" ] && [ $TRAVIS_REPO_SLUG == " mybatis/mybatis-dynamic-sql " ] ; then
36
36
37
- ./mvnw clean test jacoco:report coveralls:report
37
+ ./mvnw clean test jacoco:report coveralls:report -q
38
38
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
40
40
# Deploy to Sonatype
41
41
./mvnw clean deploy -q --settings ./travis/settings.xml
42
42
echo -e " Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER} "
43
43
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 "
45
45
fi
46
46
else
47
47
echo " Travis Pull Request: $TRAVIS_PULL_REQUEST "
48
48
echo " Travis Branch: $TRAVIS_BRANCH "
49
49
echo " Travis build skipped"
50
- fi
50
+ fi
You can’t perform that action at this time.
0 commit comments