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: build:
script: script:
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp test - 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> <version>3.1.1</version>
<configuration> <configuration>
<configLocation>${project.build.directory}/../src/test/resources/checkstyle.xml</configLocation> <configLocation>${project.build.directory}/../src/test/resources/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput> <failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError> <violationSeverity>warning</violationSeverity>
<sourceDirectories>${project.build.directory}/../src/main/java</sourceDirectories> <sourceDirectories>${project.build.directory}/../src/main/java</sourceDirectories>
</configuration> </configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>