[
https://issues.apache.org/jira/browse/DRILL-6777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650665#comment-16650665
]
ASF GitHub Bot commented on DRILL-6777:
---------------------------------------
amansinha100 closed pull request #1493: DRILL-6777: Setup CircleCI configs for
Drill
URL: https://github.com/apache/drill/pull/1493
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 00000000000..1b179df8d87
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+version: 2
+general:
+jobs:
+ build:
+ machine:
+ enabled: true
+ image: circleci/classic:latest
+ parallelism: 1 # TODO: 1. Configuring Parallel Jobs for Running Tests
https://circleci.com/docs/2.0/parallelism-faster-jobs/
+
+
+ working_directory: ~/drill
+
+ steps:
+ - checkout
+
+ - run:
+ name: Update maven version
+ # 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
+ - run:
+ name: Update packages list
+ command:
+ sudo apt-get update
+ - run:
+ name: Install libaio1.so library for MySQL integration tests
+ command:
+ sudo apt-get install libaio1 libaio-dev
+ - run:
+ name: Drill project build
+ # TODO: 2. Optimizing Maven Builds on CircleCI -
https://circleci.com/blog/optimizing-maven-builds-on-circleci/
+ # TODO: 3. Caching Dependencies -
https://circleci.com/docs/2.0/caching/
+ # 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"
diff --git a/contrib/storage-jdbc/pom.xml b/contrib/storage-jdbc/pom.xml
index a032e6918a9..7de89f08afe 100755
--- a/contrib/storage-jdbc/pom.xml
+++ b/contrib/storage-jdbc/pom.xml
@@ -213,7 +213,7 @@
<plugin>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-mysql-maven-plugin</artifactId>
- <version>0.8.2</version>
+ <version>0.9</version>
<executions>
<execution>
<id>mysql-test</id>
diff --git
a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java
b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java
index 1640913096e..0f377e3e8a8 100644
---
a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java
+++
b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java
@@ -26,6 +26,7 @@
/**
* JDBC storage plugin tests against MySQL.
+ * Note: it requires libaio.so library in the system
*/
@Category(JdbcStorageTest.class)
public class TestJdbcPluginWithMySQLIT extends PlanTestBase {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Setup CircleCI configs for Drill
> --------------------------------
>
> Key: DRILL-6777
> URL: https://issues.apache.org/jira/browse/DRILL-6777
> Project: Apache Drill
> Issue Type: Sub-task
> Components: Tools, Build & Test
> Affects Versions: 1.14.0
> Reporter: Vitalii Diravka
> Assignee: Vitalii Diravka
> Priority: Major
> Labels: ready-to-commit
> Fix For: 1.15.0
>
>
> The configs for the build is the following:
> {noformat}
> version: 2
> general:
> jobs:
> build:
> machine:
> enabled: true
> image: circleci/classic:latest
> parallelism: 1
> working_directory: ~/drill
> steps:
> - checkout
> - run:
> name: Update maven version
> command:
> curl -fsSL https://git.io/vpDIf | bash -s -- 3.5.4
> - run:
> name: Update packages list
> command:
> sudo apt-get update
> - 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"
> {noformat}
> There are 4 stages:
> 1) Maven version update (since 3.2.5 is default on CircleCI machine)
> {noformat}
> circleci@default-c2e8efb6-c016-4611-8ae8-6f5b08a187fe:~$ mvn --version
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T17:29:23+00:00)
> Maven home: /usr/local/apache-maven
> Java version: 1.8.0_131, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.8.0/jre
> {noformat}
> 2) prepare for 3d stage
> 3) install _libaio1.so_ lib to the system to successfully pass MySQL tests
> 4) Drill build itself.
> _Note: the build with SlowTest and UnlikelyTest will cause memory issues.
> The solution could be investigated in separate Jira._
> The example of successful CircleCI build:
> https://circleci.com/gh/vdiravka/drill/96
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)