1
1
#! /bin/bash
2
2
#
3
- # Copyright 2016-2017 the original author or authors.
3
+ # Copyright 2016-2018 the original author or authors.
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -25,22 +25,21 @@ echo "Current commit detected: ${commit_message}"
25
25
# artifacts on a Maven repository, should only be made for one version.
26
26
27
27
# If the version is 1.8, then perform the following actions.
28
- # 1. Upload artifacts to Sonatype .
28
+ # 1. Notify Coveralls .
29
29
# 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.
34
32
# a. Use -q option to only display Maven errors and warnings.
33
+ # b. Use --settings to force the usage of our "settings.xml" file.
35
34
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
37
36
38
- if [ $TRAVIS_JDK_VERSION == " oraclejdk8 " ] ; then
37
+ ./mvnw clean test jacoco:report coveralls:report
39
38
39
+ if [ $TRAVIS_REPO_SLUG == " mybatis/mybatis-dynamic-sql" ] && [ " $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
-
44
43
else
45
44
echo " Java Version does not support additional activity for travis CI"
46
45
fi
0 commit comments