11#! /bin/bash
22#
3- # Copyright 2016-2017 the original author or authors.
3+ # Copyright 2016-2018 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.
@@ -25,22 +25,21 @@ echo "Current commit detected: ${commit_message}"
2525# artifacts on a Maven repository, should only be made for one version.
2626
2727# If the version is 1.8, then perform the following actions.
28- # 1. Upload artifacts to Sonatype .
28+ # 1. Notify Coveralls .
2929# a. Use -q option to only display Maven errors and warnings.
30- # b. Use --settings to force the usage of our "settings.xml" file.
31- # 2. Notify Coveralls.
32- # a. Use -q option to only display Maven errors and warnings.
33- # 3. Deploy site (disabled)
30+ # If this is a build on the master branch and not a pull request then
31+ # 2. Upload artifacts to Sonatype.
3432# a. Use -q option to only display Maven errors and warnings.
33+ # b. Use --settings to force the usage of our "settings.xml" file.
3534
36- if [ $TRAVIS_REPO_SLUG == " mybatis/mybatis-dynamic-sql " ] && [ " $TRAVIS_PULL_REQUEST " == " false " ] && [ " $TRAVIS_BRANCH " == " master " ] && [[ " $commit_message " != * " [maven-release-plugin] " * ] ]; then
35+ if [ $TRAVIS_JDK_VERSION == " oraclejdk8 " ]; then
3736
38- if [ $TRAVIS_JDK_VERSION == " oraclejdk8 " ] ; then
37+ ./mvnw clean test jacoco:report coveralls:report
3938
39+ if [ $TRAVIS_REPO_SLUG == " mybatis/mybatis-dynamic-sql" ] && [ " $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} "
43-
4443 else
4544 echo " Java Version does not support additional activity for travis CI"
4645 fi
0 commit comments