Skip to content

Commit

Permalink
Merge pull request prestodb#3 from treasure-data/circleci-mem
Browse files Browse the repository at this point in the history
Run tests in circle.yml
  • Loading branch information
xerial committed May 11, 2015
2 parents d757a01 + bb6175b commit 3160dc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,8 +23,9 @@ 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.
# Running tests only in master branch
- if [ "$CIRCLE_BRANCH" = "master" ]; then rake test; fi

deployment:
all:
Expand Down

0 comments on commit 3160dc9

Please sign in to comment.