Skip to content

Commit

Permalink
Add checkstyle to standard maven validate target
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfav committed Apr 7, 2019
1 parent 9b64f63 commit 38d433f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_script:
- sudo apt-get install libc6:i386 libstdc++6:i386

script:
- ./mvnw clean install -X -Djarsigner.skip=false checkstyle:check
- ./mvnw clean install -X -Djarsigner.skip=false

after_success:
- ./mvnw test jacoco:report coveralls:report
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
<version>8.18</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>checkstyle</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<failOnViolation>true</failOnViolation>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 38d433f

Please sign in to comment.