Skip to content

Commit 2410192

Browse files
committed
Merge pull request #637 from hazendaz/master
Adjustments to travis build
2 parents e23f2fb + 374c96b commit 2410192

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
<systemProperties>
261261
<property>
262262
<name>derby.stream.error.file</name>
263-
<value>target/derby.log</value>
263+
<value>${project.build.directory}/derby.log</value>
264264
</property>
265265
</systemProperties>
266266
</configuration>

travis/after_success.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# Get Project Repo
2020
mybatis_repo=$(git config --get remote.origin.url 2>&1)
2121
echo "Repo detected: ${mybatis_repo}"
22+
23+
# Get Commit Message
24+
commit_message=$(git log --format=%B -n 1)
25+
echo "Current commit detected: ${commit_message}"
2226

2327
# Get the Java version.
2428
# Java 1.5 will give 15.
@@ -42,11 +46,11 @@ echo "Java detected: ${VER}"
4246
# 2. Deploy site
4347
# 3. Use -q option to only display Maven errors and warnings.
4448

45-
if [ "$mybatis_repo" == "https://github.com/mybatis/mybatis-3.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
49+
if [ "$mybatis_repo" == "https://github.com/mybatis/mybatis-3.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
4650
if [ $VER == "16" ]; then
4751
mvn clean deploy -q --settings ./travis/settings.xml
4852
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
49-
elif [ $VER == "17" ]; then
53+
elif [ $VER == "18" ]; then
5054
mvn clean test jacoco:report coveralls:report -q
5155
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
5256
# various issues exist currently in building this so comment for now

0 commit comments

Comments
 (0)