Skip to content

Commit

Permalink
Improve MAVEN build Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhang22 committed Aug 27, 2021
1 parent 67579a9 commit 1722b65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script:
script:
- "PGPASSWORD=\"test\" ./packaging/dbscripts/schema.sh -d engine_dao_tests -u engine_test -s localhost -p 5433 -c apply"
- rm -rvf /home/travis/.m2/repository/
- for i in `seq 1 120`; do sleep 60; echo 'keep alive'; done & mvn --quiet clean org.jacoco:jacoco-maven-plugin:prepare-agent install -P enable-dao-tests sonar:sonar -Dsonar.organization=default -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dengine.db.username=engine_test -Dengine.db.password=test -Dengine.db.url=jdbc:postgresql://localhost:5433/engine_dao_tests
- for i in `seq 1 120`; do sleep 60; echo 'keep alive'; done & mvn -T 1C --quiet clean org.jacoco:jacoco-maven-plugin:prepare-agent install -P enable-dao-tests sonar:sonar -Dsonar.organization=default -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dengine.db.username=engine_test -Dengine.db.password=test -Dengine.db.url=jdbc:postgresql://localhost:5433/engine_dao_tests
env:
global:
- secure: kgBwT3IHk1vg1PHD4KKqkIOFlv4MGkOA+IK+nsTbPRJEvWpzZSgpHLuL+/2YuB4tntNMMj3LHwPTSJmaGLRdxaSjjv0MfzQA/fudLqTJ+FL3MuA++YcLSfjj6wj1dlMRj+0vYgCQcBMKTktDhGMdE6gUh42AQBzywqe1IcnX5Qs=
Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@
<configuration>
<reportsDirectory>${ovirt.surefire.reportsDirectory}</reportsDirectory>
<argLine>--illegal-access=permit</argLine>
<parallel>classes</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>

</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -833,6 +836,11 @@
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>classes</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>
</configuration>

</plugin>
</plugins>
</build>
Expand All @@ -845,6 +853,9 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<parallel>classes</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>

</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 1722b65

Please sign in to comment.