Trying to fix Circle by killing all gradle deamons before running a build and lowering memory usage
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
Reference in New Issue
Block a user