From 90373771789d0103d2a0f749ff37aa1524a9b683 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Mon, 11 May 2015 16:02:34 +0900 Subject: [PATCH 1/3] Run tests in circle.yml --- circle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 56cecbd3bda41..54389ef199ed7 100644 --- a/circle.yml +++ b/circle.yml @@ -5,7 +5,7 @@ machine: java: version: oraclejdk8 environment: - MAVEN_OPTS: -Xmx3g + MAVEN_OPTS: -Xmx6g M2_HOME: $HOME/.m2/apache-maven-3.2.5 # .m2 is cached M2: $HOME/.m2/apache-maven-3.2.5/bin PATH: $HOME/.m2/apache-maven-3.2.5/bin:$PATH @@ -23,8 +23,8 @@ dependencies: test: override: - # Do nothing since Presto tests cannot be finished under 4GB memory limit of CircleCI - - echo skip tests + # Currently CircleCI provides us 8GB container, so mvn test will work + - rake test deployment: all: From 45cdd741f88556ffd2eda21855bf1f4d394cee72 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Mon, 11 May 2015 16:15:12 +0900 Subject: [PATCH 2/3] Fix mvn command in rake test --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 185478aeb4dfb..1c21f3b6582bd 100644 --- a/Rakefile +++ b/Rakefile @@ -37,7 +37,7 @@ end desc "run tests" task "test" do - sh "mvn #{active_modules.join(",")} test" + sh "mvn -pl #{active_modules.join(",")} test" end desc "set a unique version and td-specific settings" From bb6175bc914dd787efd77d50e7cdf07ce3377c0c Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Mon, 11 May 2015 17:48:30 +0900 Subject: [PATCH 3/3] Run tests only at master branch --- circle.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 54389ef199ed7..8ec93e45c76c9 100644 --- a/circle.yml +++ b/circle.yml @@ -23,8 +23,9 @@ dependencies: test: override: - # Currently CircleCI provides us 8GB container, so mvn test will work - - rake test + # Currently CircleCI provides us 8GB container, so mvn test will work. + # Running tests only in master branch + - if [ "$CIRCLE_BRANCH" = "master" ]; then rake test; fi deployment: all: