mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 21:45:49 +00:00
Move mutation testing to the build phase
This commit is contained in:
parent
d42fa6e12a
commit
799eaf36b6
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,6 @@ before_script:
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mvn org.pitest:pitest-maven:mutationCoverage
|
|
||||||
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test -Dskip.failsafe.tests sonar:sonar -Dsonar.pitest.mode=reuseReport
|
- 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
|
- docker exec springpetclinic_pet-clinic_1 mvn verify -Dskip.surefire.tests -q --batch-mode
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the project
|
# 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
|
# Copy and make the jar executable
|
||||||
RUN sh -c 'mkdir dist/ && cp -a target/. dist/ && touch dist/spring-petclinic-*.jar'
|
RUN sh -c 'mkdir dist/ && cp -a target/. dist/ && touch dist/spring-petclinic-*.jar'
|
||||||
|
|
Loading…
Reference in a new issue