[DEV] update check style
This commit is contained in:
parent
4c6752a53d
commit
8b661eb4ff
@ -24,8 +24,7 @@ stages:
|
|||||||
style_job:
|
style_job:
|
||||||
stage: style
|
stage: style
|
||||||
script:
|
script:
|
||||||
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"`
|
- mvn $MAVEN_CLI_OPTS checkstyle:checkstyle
|
||||||
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"`
|
|
||||||
|
|
||||||
build_job:
|
build_job:
|
||||||
stage: build
|
stage: build
|
||||||
@ -45,7 +44,6 @@ test_job:
|
|||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
expire_in: 3 day
|
expire_in: 3 day
|
||||||
keep: latest
|
|
||||||
paths:
|
paths:
|
||||||
- target/site/jacoco
|
- target/site/jacoco
|
||||||
reports:
|
reports:
|
||||||
@ -61,6 +59,5 @@ package_job:
|
|||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
expire_in: 3 day
|
expire_in: 3 day
|
||||||
keep: latest
|
|
||||||
paths:
|
paths:
|
||||||
- target/*.jar
|
- target/*.jar
|
12
pom.xml
12
pom.xml
@ -96,6 +96,18 @@
|
|||||||
<nohelp>true</nohelp>
|
<nohelp>true</nohelp>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Check the style of the code -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<version>3.1.0</version>
|
||||||
|
<configuration>
|
||||||
|
<configLocation>CheckStyle.xml</configLocation>
|
||||||
|
<consoleOutput>true</consoleOutput>
|
||||||
|
<failOnViolation>true</failOnViolation>
|
||||||
|
<failsOnError>true</failsOnError>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<!-- Generate Java-docs As Part Of Project Reports -->
|
<!-- Generate Java-docs As Part Of Project Reports -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user