Move mutation testing to the build phase

This commit is contained in:
Marty30 2017-06-27 22:39:57 +02:00
parent d42fa6e12a
commit 799eaf36b6
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'