Skip to content

Commit 4a58eef

Browse files
committed
Only run coveralls report on JDK 8
1 parent 6b35e52 commit 4a58eef

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jdk:
99
- oraclejdk8
1010

1111
after_success:
12-
- mvn clean test jacoco:report coveralls:report
1312
- chmod -R 777 ./travis/after_success.sh
1413
- ./travis/after_success.sh
1514

travis/after_success.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

Comments
 (0)