Trying to fix Circle by killing all gradle deamons before running a build and lowering memory usage

This commit is contained in:
Marcin Grzejszczak
2019-08-19 10:33:34 +02:00
parent dd57966746
commit 47192ecf75
3 changed files with 33 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ jobs:
docker:
- image: cloudpipelines/pipeline-base
environment:
JAVA_TOOL_OPTIONS: "-Xms64m -Xmx300m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms64m -Xmx300m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
JAVA_TOOL_OPTIONS: "-Xms64m -Xmx250m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms64m -Xmx250m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
TERM: dumb
branches:
ignore:

View File

@@ -1,6 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<profiles>
<profile>
<id>CI</id>
<activation>
<property>
<name>env.CI</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>kill-daemons</id>
<phase>clean</phase>
<configuration>
<executable>pkill</executable>
<arguments>
<argument>-f</argument>
<argument>'.*GradleDaemon.*'</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>integration</id>
<activation>

View File

@@ -7,4 +7,4 @@ set -e
[[ -z "${CORES}" ]] && CORES=1
echo -e "\n\nRUNNING FAST BUILD (NO INTEGRATION TESTS) WITH [${CORES}] CORES\n\n"
./mvnw clean install -Pdocs,fast -T ${CORES}
./mvnw clean install -Pdocs,fast -T ${CORES} -Dinvoker.parallelThreads=${CORES}