You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/07/15 10:22:15 UTC

[flink] 01/06: [FLINK-12995][hive] Add Hive-1.2.1 build to Travis

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 3298f0cbffb7b357a005b3543f5a81e62af4d996
Author: Rui Li <li...@apache.org>
AuthorDate: Thu Jun 27 17:02:52 2019 +0800

    [FLINK-12995][hive] Add Hive-1.2.1 build to Travis
---
 .travis.yml           |  6 ++++++
 tools/travis/stage.sh | 10 ++++++++++
 2 files changed, 16 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 03bbbb9..78392ae 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -65,6 +65,7 @@ notifications:
 stages:
   - name: compile
   - name: test
+  - name: connector_hive_1
   - name: E2E
     if: type = cron
   - name: cleanup
@@ -112,6 +113,11 @@ jobs:
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
       name: misc
     - if: type in (pull_request, push)
+      stage: connector_hive_1
+      script: ./tools/travis_controller.sh connector_hive_1
+      env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
+      name: connector_hive_1
+    - if: type in (pull_request, push)
       stage: cleanup
       script: ./tools/travis_controller.sh cleanup
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
diff --git a/tools/travis/stage.sh b/tools/travis/stage.sh
index 7bd7a97..922430e 100644
--- a/tools/travis/stage.sh
+++ b/tools/travis/stage.sh
@@ -25,6 +25,7 @@ STAGE_BLINK_PLANNER="blink_planner"
 STAGE_CONNECTORS="connectors"
 STAGE_KAFKA_GELLY="kafka/gelly"
 STAGE_TESTS="tests"
+STAGE_CONNECTOR_HIVE_1="connector_hive_1"
 STAGE_MISC="misc"
 STAGE_CLEANUP="cleanup"
 
@@ -129,6 +130,9 @@ MODULES_CONNECTORS_JDK9_EXCLUSIONS="\
 MODULES_TESTS="\
 flink-tests"
 
+MODULES_CONNECTOR_HIVE="\
+flink-connectors/flink-connector-hive"
+
 if [[ ${PROFILE} == *"include-kinesis"* ]]; then
     MODULES_CONNECTORS="$MODULES_CONNECTORS,flink-connectors/flink-connector-kinesis"
 fi
@@ -165,6 +169,9 @@ function get_compile_modules_for_stage() {
         (${STAGE_TESTS})
             echo "-pl $MODULES_TESTS -am"
         ;;
+        (${STAGE_CONNECTOR_HIVE_1})
+            echo "-pl $MODULES_CONNECTOR_HIVE -am -Phive-1.2.1 clean"
+        ;;
         (${STAGE_MISC})
             # compile everything; using the -am switch does not work with negated module lists!
             # the negation takes precedence, thus not all required modules would be built
@@ -213,6 +220,9 @@ function get_test_modules_for_stage() {
         (${STAGE_TESTS})
             echo "-pl $modules_tests"
         ;;
+        (${STAGE_CONNECTOR_HIVE_1})
+            echo "-pl $MODULES_CONNECTOR_HIVE -Phive-1.2.1"
+        ;;
         (${STAGE_MISC})
             echo "-pl $modules_misc"
         ;;