From 500d3ae0fcdc151d5e965c64e79cb66bfc24ca26 Mon Sep 17 00:00:00 2001 From: rnveach Date: Tue, 14 Nov 2017 21:49:18 -0500 Subject: [PATCH] minor: fix memory problem for regression --- .ci/travis/checkstyle_regression_no_exception.sh | 2 +- .travis.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/travis/checkstyle_regression_no_exception.sh b/.ci/travis/checkstyle_regression_no_exception.sh index fed3acb..f2949c3 100755 --- a/.ci/travis/checkstyle_regression_no_exception.sh +++ b/.ci/travis/checkstyle_regression_no_exception.sh @@ -24,7 +24,7 @@ git checkout master git reset --hard "${MASTER_COMMIT}" cd .. mvn clean package -Passembly -java -jar target/regression-tool-1.0-SNAPSHOT-all.jar -r "$CHECKSTYLE_PATH" -p test-branch -t contribution/checkstyle-tester +java -Xms1024m -Xmx2048m -jar target/regression-tool-1.0-SNAPSHOT-all.jar -r "$CHECKSTYLE_PATH" -p test-branch -t contribution/checkstyle-tester RESULT="$?" cat config-test-branch-*.xml rm config-test-branch-*.xml diff --git a/.travis.yml b/.travis.yml index 8c48d22..312bf10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,13 +74,13 @@ matrix: - jdk: oraclejdk8 env: - DESC="checkstyle regression no exception on latest commit" - - CMD="./.ci/travis/checkstyle_regression_no_exception.sh HEAD HEAD^" + - CMD="export MAVEN_OPTS='-Xmx2000m' && export JAVA_OPTS='-Xmx2000m' && ./.ci/travis/checkstyle_regression_no_exception.sh HEAD HEAD^" # checkstyle regression no exception, changes to check (oraclejdk8) - jdk: oraclejdk8 env: - DESC="checkstyle regression no exception, changes to check" - - CMD="./.ci/travis/checkstyle_regression_no_exception.sh f0ed29b d2e0c4c 8.5-SNAPSHOT" + - CMD="export MAVEN_OPTS='-Xmx2000m' && export JAVA_OPTS='-Xmx2000m' && ./.ci/travis/checkstyle_regression_no_exception.sh f0ed29b d2e0c4c 8.5-SNAPSHOT" script: eval $CMD