You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by am...@apache.org on 2018/12/06 22:40:54 UTC
[drill] 02/04: DRILL-6876: Enable CircleCI builds for JDK 9-11
This is an automated email from the ASF dual-hosted git repository.
amansinha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git
commit abc51d80095cf5df2de64a3acbf75bdd88bd1db5
Author: Volodymyr Vysotskyi <vv...@gmail.com>
AuthorDate: Fri Nov 16 15:43:27 2018 +0200
DRILL-6876: Enable CircleCI builds for JDK 9-11
close apache/drill#1558
---
.circleci/config.yml | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 133 insertions(+), 2 deletions(-)
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 1b179df..e2b1141 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -16,7 +16,7 @@
version: 2
general:
jobs:
- build:
+ build_jdk8:
machine:
enabled: true
image: circleci/classic:latest
@@ -33,7 +33,7 @@ jobs:
# TODO: Could be removed, once Machine Executor image is updated https://github.com/circleci/image-builder/issues/140
# and the possibility of specifying Maven version is added https://github.com/circleci/image-builder/issues/143
command:
- curl -fsSL https://git.io/vpDIf | bash -s -- 3.5.4
+ curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0
- run:
name: Update packages list
command:
@@ -49,3 +49,134 @@ jobs:
# TODO: 4. Resolving memory issues without "SlowTest" and "UnlikelyTest" excludedGroups in the build
command:
mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest"
+
+ build_jdk9:
+ machine:
+ enabled: true
+ image: circleci/classic:latest
+ parallelism: 1
+
+ working_directory: ~/drill
+
+ steps:
+ - checkout
+
+ - run:
+ name: Update packages list
+ command:
+ sudo apt-get update
+
+ - run:
+ name: Install java 9
+ command:
+ sudo apt-get -y install openjdk-9-jdk
+
+ - run:
+ name: Set default java 9
+ command:
+ sudo update-java-alternatives --set java-1.9.0-openjdk-amd64
+
+ - run:
+ name: Update maven version
+ command:
+ curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0
+
+ - run:
+ name: Install libaio1.so library for MySQL integration tests
+ command:
+ sudo apt-get install libaio1 libaio-dev
+ - run:
+ name: Drill project build
+ command:
+ mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest"
+
+ build_jdk10:
+ machine:
+ enabled: true
+ image: circleci/classic:latest
+ parallelism: 1
+
+ working_directory: ~/drill
+
+ steps:
+ - checkout
+
+ - run:
+ name: Update packages list
+ command:
+ sudo apt-get update
+
+ - run:
+ name: Install java 10
+ command:
+ sudo apt-get -y install openjdk-10-jdk
+
+ - run:
+ name: Set default java 10
+ command:
+ sudo update-java-alternatives --set java-1.10.0-openjdk-amd64
+
+ - run:
+ name: Update maven version
+ command:
+ curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0
+
+ - run:
+ name: Install libaio1.so library for MySQL integration tests
+ command:
+ sudo apt-get install libaio1 libaio-dev
+ - run:
+ name: Drill project build
+ command:
+ mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest"
+
+ build_jdk11:
+ machine:
+ enabled: true
+ image: circleci/classic:latest
+ parallelism: 1
+
+ working_directory: ~/drill
+
+ steps:
+ - checkout
+
+ - run:
+ name: Update packages list
+ command:
+ sudo apt-get update
+
+ - run:
+ name: Install java 11
+ command:
+ sudo apt-get -y install openjdk-11-jdk
+
+ - run:
+ name: Set default java 11
+ command:
+ sudo update-java-alternatives --set java-1.11.0-openjdk-amd64
+
+ - run:
+ name: Update maven version
+ command:
+ curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0
+
+ - run:
+ name: Install libaio1.so library for MySQL integration tests
+ command:
+ sudo apt-get install libaio1 libaio-dev
+ - run:
+ name: Drill project build
+ # Set forkCount to 1 since tests use more memory and memory limitations for CircleCI is reached
+ # for default value of forkCount.
+ command:
+ mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DforkCount=1 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest"
+
+workflows:
+ version: 2
+ build_and_test:
+ jobs:
+ - build_jdk8
+ - build_jdk9
+ - build_jdk10
+ - build_jdk11