mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Merge branch 'master' of https://github.com/marty30/spring-petclinic
This commit is contained in:
commit
1c9d3c14ab
3 changed files with 13 additions and 2 deletions
|
@ -20,7 +20,7 @@ before_script:
|
|||
- docker-compose up -d
|
||||
|
||||
script:
|
||||
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dskip.failsafe.tests sonar:sonar
|
||||
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test -Dskip.failsafe.tests sonar:sonar -Dsonar.pitest.mode=reuseReport
|
||||
- docker exec springpetclinic_pet-clinic_1 mvn verify -Dskip.surefire.tests -q --batch-mode
|
||||
|
||||
after_script:
|
||||
|
|
|
@ -7,7 +7,8 @@ WORKDIR /app
|
|||
COPY . .
|
||||
|
||||
# Build the project
|
||||
RUN mvn package -Dskip.failsafe.tests -q --batch-mode
|
||||
RUN mvn package -Dskip.failsafe.tests -q --batch-mode && \
|
||||
mvn org.pitest:pitest-maven:mutationCoverage -q --batch-mode
|
||||
|
||||
# Copy and make the jar executable
|
||||
RUN sh -c 'mkdir dist/ && cp -a target/. dist/ && touch dist/spring-petclinic-*.jar'
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -156,6 +156,16 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.pitest</groupId>
|
||||
<artifactId>pitest-maven</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<outputFormats>
|
||||
<outputFormat>XML</outputFormat>
|
||||
</outputFormats>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
|
Loading…
Reference in a new issue