@@ -23,30 +23,27 @@ echo "Current commit detected: ${commit_message}"
2323# We build for several JDKs on Travis.
2424# Some actions, like analyzing the code (Coveralls) and uploading
2525# artifacts on a Maven repository, should only be made for one version.
26-
27- # If the version is 1.6, then perform the following actions.
28- # 1. Upload artifacts to Sonatype.
29- # 2. Use -q option to only display Maven errors and warnings.
30- # 3. Use --settings to force the usage of our "settings.xml" file.
31- # 4. Notify Coveralls.
32- # 5. Deploy site
26+
27+ # If the version is 1.8, then perform the following actions.
28+ # 1. Notify Coveralls.
29+ # 2. Deploy site (disabled as solution not complete).
30+
31+ # Parameters
32+ # 1. Use -q option to only display Maven errors and warnings.
33+ # 2. Use --settings to force the usage of our "settings.xml" file.
3334
3435if [ $TRAVIS_REPO_SLUG == " mybatis/migrations" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " master" ] && [[ " $commit_message " != * " [maven-release-plugin]" * ]]; then
3536
3637 if [ $TRAVIS_JDK_VERSION == " openjdk8" ]; then
3738
38- # Deploy to sonatype
39- ./mvnw clean deploy -q --settings ./travis/settings.xml
40- echo -e " Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER} "
41-
4239 # Deploy to coveralls
43- ./mvnw clean test jacoco:report coveralls:report -q --settings ./travis /settings.xml
40+ ./mvnw clean test jacoco:report coveralls:report -q --settings ./mvn /settings.xml
4441 echo -e " Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER} "
4542
4643 # Deploy to site
4744 # Cannot currently run site this way
48- # ./mvnw site site:deploy -q --settings ./travis /settings.xml
49- # echo -e "Successfully deploy site under Travis job ${TRAVIS_JOB_NUMBER}"
45+ # ./mvnw site site:deploy -q --settings ./mvn /settings.xml
46+ # echo -e "Successfully deploy site under Travis job ${TRAVIS_JOB_NUMBER}"
5047 else
5148 echo " Java Version does not support additonal activity for travis CI"
5249 fi
0 commit comments