Skip to content

Commit

Permalink
test: Add spotbugs and checkstyle maven plugins for Travis CI (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatfiredev authored Aug 12, 2020
1 parent 89be5ee commit fe30aed
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install:
cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar

test:
mvn test
mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml

test-integ: test

Expand Down
23 changes: 22 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.0.4</version>
<dependencies>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.0.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<developers>
Expand Down Expand Up @@ -309,4 +321,13 @@
<version>1.66</version>
</dependency>
</dependencies>
</project>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</reporting>
</project>

0 comments on commit fe30aed

Please sign in to comment.