CI: Checkstyle

This commit is contained in:
Arne Keller 2021-01-27 20:53:33 +01:00
parent 5cf04a979a
commit 15134d544d
2 changed files with 3 additions and 11 deletions

View File

@ -1,3 +1,4 @@
build:
script:
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp test

13
pom.xml
View File

@ -161,19 +161,10 @@
<version>3.1.1</version>
<configuration>
<configLocation>${project.build.directory}/../src/test/resources/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<failOnViolation>true</failOnViolation>
<violationSeverity>warning</violationSeverity>
<sourceDirectories>${project.build.directory}/../src/main/java</sourceDirectories>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>