|
19 | 19 | IMAGE_NAME: utbot_java_cli |
20 | 20 | DOCKERFILE_PATH: docker/Dockerfile_java_cli |
21 | 21 | # Environment variable setting gradle options. |
22 | | - GRADLE_OPTS: "-XX:MaxHeapSize=2048m -Dorg.gradle.jvmargs='-XX:MaxHeapSize=2048m -XX:MaxPermSize=512m -Dorg.gradle.daemon=false' -Dorg.gradle.daemon=false" |
| 22 | + # |
| 23 | + # When configuring Gradle behavior you can use these methods, |
| 24 | + # listed in order of highest to lowest precedence (first one wins): |
| 25 | + # - Command-line flags such as --build-cache. |
| 26 | + # These have precedence over properties and environment variables. |
| 27 | + # - System properties such as systemProp.http.proxyHost=somehost.org |
| 28 | + # stored in a gradle.properties file in a root project directory. |
| 29 | + # - Gradle properties such as org.gradle.caching=true that are |
| 30 | + # typically stored in a gradle.properties file in a project |
| 31 | + # directory or in the GRADLE_USER_HOME. |
| 32 | + # - Environment variables such as GRADLE_OPTS sourced by the |
| 33 | + # environment that executes Gradle. |
| 34 | + # |
| 35 | + # read more at: https://docs.gradle.org/current/userguide/build_environment.html |
| 36 | + # |
| 37 | + # example of GRADLE_OPTS: |
| 38 | +# GRADLE_OPTS: "-XX:MaxHeapSize=2048m -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dkotlin.compiler.execution.strategy=in-process" |
23 | 39 | PUSHGATEWAY_HOSTNAME: monitoring.utbot.org |
24 | 40 | ELK_HOSTNAME: logs.utbot.org |
25 | 41 | FILEBEAT_DIR: /tmp/filebeat |
@@ -115,7 +131,7 @@ jobs: |
115 | 131 | restore-keys: ${{ runner.os }}-gradle-framework |
116 | 132 | - name: Run tests |
117 | 133 | run: | |
118 | | - gradle --build-cache --no-daemon :utbot-framework-test:test ${{ matrix.project.TESTS_TO_RUN }} |
| 134 | + gradle --no-daemon --build-cache --no-parallel -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx4g :utbot-framework-test:test ${{ matrix.project.TESTS_TO_RUN }} |
119 | 135 |
|
120 | 136 | - name: Upload logs |
121 | 137 | if: ${{ always() }} |
@@ -191,13 +207,13 @@ jobs: |
191 | 207 | id: first-project |
192 | 208 | run: | |
193 | 209 | cd ${{ matrix.projects.first }} |
194 | | - gradle build --build-cache --no-daemon |
| 210 | + gradle build --no-daemon --build-cache --no-parallel -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx4g |
195 | 211 |
|
196 | 212 | - name: Build project ${{ matrix.projects.second }} |
197 | 213 | if: ${{ steps.first-project.outcome != 'cancelled' && steps.first-project.outcome != 'skipped' }} |
198 | 214 | run: | |
199 | 215 | cd ${{ matrix.projects.second }} |
200 | | - gradle build --build-cache --no-daemon |
| 216 | + gradle build --no-daemon --build-cache --no-parallel -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx4g |
201 | 217 |
|
202 | 218 | - name: Upload test report if tests have failed |
203 | 219 | if: ${{ failure() }} |
@@ -266,7 +282,7 @@ jobs: |
266 | 282 | - name: Run tests |
267 | 283 | run: | |
268 | 284 | cd ${{ matrix.project }} |
269 | | - gradle build --build-cache --no-daemon |
| 285 | + gradle build --no-daemon --build-cache --no-parallel -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx4g |
270 | 286 |
|
271 | 287 | - name: Upload test report if tests have failed |
272 | 288 | if: ${{ failure() }} |
|
0 commit comments