Skip to content

Commit bea17a4

Browse files
author
Andrew Kent
committed
Separate CI building and testing steps, and increase max memory.
Gradle was using too much memory when testing and building in the same step, causing CI to kill the process forcefully. Separating them out resolves the problem.
1 parent 637e27e commit bea17a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ jobs:
1212
# Reset the cache approx every release
1313
key: dd-trace-java-{{ checksum "dd-trace-java.gradle" }}
1414

15+
- run:
16+
name: Build Project
17+
command: GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx2G -Xms512M" ./gradlew clean compileJava compileTestJava compileGroovy compileTestGroovy shadowJar --stacktrace --no-daemon
18+
1519
- run:
1620
name: Run Tests
17-
command: GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx1G -Xms512M" ./gradlew clean check --parallel --stacktrace --no-daemon --max-workers=3
21+
command: GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx2G -Xms512M" ./gradlew check --parallel --stacktrace --no-daemon --max-workers=3
1822

1923
- run:
2024
name: Verify Version Scan

0 commit comments

Comments
 (0)