Skip to content

Commit 0f2567d

Browse files
authored
Merge pull request #7 from jeffgbutler/master
Misc. Build Improvements
2 parents 681a67a + f6f261b commit 0f2567d

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed
File renamed without changes.

pom.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-checkstyle-plugin</artifactId>
6060
<configuration>
61-
<configLocation>checkstyle-dsql.xml</configLocation>
61+
<configLocation>checkstyle-override.xml</configLocation>
6262
</configuration>
6363
</plugin>
6464
</plugins>
@@ -96,11 +96,10 @@
9696
<version>${junit.jupiter.version}</version>
9797
<scope>test</scope>
9898
</dependency>
99-
<!-- added to support running JUnit5 tests with JUnit4. Remove when eclipse/infinitest catch up. -->
10099
<dependency>
101-
<groupId>org.junit.vintage</groupId>
102-
<artifactId>junit-vintage-engine</artifactId>
103-
<version>4.12.2</version>
100+
<groupId>org.junit.jupiter</groupId>
101+
<artifactId>junit-jupiter-engine</artifactId>
102+
<version>${junit.jupiter.version}</version>
104103
<scope>test</scope>
105104
</dependency>
106105
<dependency>
@@ -115,6 +114,16 @@
115114
<version>${junit.jupiter.version}</version>
116115
<scope>test</scope>
117116
</dependency>
117+
<!-- added to support running JUnit5 tests with JUnit4. Remove when Infinitest catches up. -->
118+
<!-- Note: DO NOT make this the org.junit.vintage support. All the tests are written with JUnit5.
119+
Once Infinitest is ready we can remove this dependency and the corresponding @RunWith annotations
120+
-->
121+
<dependency>
122+
<groupId>junit</groupId>
123+
<artifactId>junit</artifactId>
124+
<version>4.12</version>
125+
<scope>test</scope>
126+
</dependency>
118127

119128
<dependency>
120129
<groupId>org.assertj</groupId>

travis/after_success.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,20 @@ echo "Current commit detected: ${commit_message}"
3232
# a. Use -q option to only display Maven errors and warnings.
3333
# b. Use --settings to force the usage of our "settings.xml" file.
3434

35-
if [ $TRAVIS_JDK_VERSION == "oraclejdk8" ]; then
35+
if [ $TRAVIS_JDK_VERSION == "oraclejdk8" ] && [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ]; then
3636

37-
./mvnw clean test jacoco:report coveralls:report
37+
./mvnw clean test jacoco:report coveralls:report -q
38+
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
3839

39-
if [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
40+
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
4041
# Deploy to Sonatype
4142
./mvnw clean deploy -q --settings ./travis/settings.xml
4243
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
4344
else
44-
echo "Java Version does not support additional activity for travis CI"
45+
echo "Not a master branch commit so no deployment of the new snapshot needed"
4546
fi
4647
else
4748
echo "Travis Pull Request: $TRAVIS_PULL_REQUEST"
4849
echo "Travis Branch: $TRAVIS_BRANCH"
4950
echo "Travis build skipped"
50-
fi
51+
fi

0 commit comments

Comments
 (0)