You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ku...@apache.org on 2019/06/19 08:39:41 UTC

[flink] branch master updated: [FLINK-12878][travis] Move flink-table-planner-blink & flink-table-runtime-blink to separate profile

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 72fd15c  [FLINK-12878][travis] Move flink-table-planner-blink & flink-table-runtime-blink to separate profile
72fd15c is described below

commit 72fd15c784ad6f5e29e73eb06c565694d52c2c4c
Author: godfrey he <go...@163.com>
AuthorDate: Wed Jun 19 16:39:24 2019 +0800

    [FLINK-12878][travis] Move flink-table-planner-blink & flink-table-runtime-blink to separate profile
    
    This closes #8772
---
 .travis.yml           | 17 +++++++++++++++++
 tools/travis/stage.sh | 17 ++++++++++++++---
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5a3b49f..b1b55a7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -92,6 +92,10 @@ jobs:
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
       name: libraries
     - if: type in (pull_request, push)
+      script: ./tools/travis_controller.sh blink_planner
+      env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
+      name: blink_planner
+    - if: type in (pull_request, push)
       script: ./tools/travis_controller.sh connectors
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11"
       name: connectors
@@ -128,6 +132,10 @@ jobs:
       env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
       name: libraries - hadoop 2.4.1
     - if: type = cron
+      script: ./tools/travis_controller.sh blink_planner
+      env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
+      name: blink_planner - hadoop 2.4.1
+    - if: type = cron
       script: ./tools/travis_controller.sh connectors
       env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
       name: connectors - hadoop 2.4.1
@@ -164,6 +172,10 @@ jobs:
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
       name: libraries - scala 2.12
     - if: type = cron
+      script: ./tools/travis_controller.sh blink_planner
+      env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
+      name: blink_planner - scala 2.12
+    - if: type = cron
       script: ./tools/travis_controller.sh connectors
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
       name: connectors - scala 2.12
@@ -209,6 +221,11 @@ jobs:
       name: libraries - jdk 9
     - if: type = cron
       jdk: "openjdk9"
+      script: ./tools/travis_controller.sh blink_planner
+      env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
+      name: blink_planner - jdk 9
+    - if: type = cron
+      jdk: "openjdk9"
       script: ./tools/travis_controller.sh connectors
       env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
       name: connectors - jdk 9
diff --git a/tools/travis/stage.sh b/tools/travis/stage.sh
index 7751dab..f202bf8 100644
--- a/tools/travis/stage.sh
+++ b/tools/travis/stage.sh
@@ -21,6 +21,7 @@ STAGE_COMPILE="compile"
 STAGE_CORE="core"
 STAGE_PYTHON="python"
 STAGE_LIBRARIES="libraries"
+STAGE_BLINK_PLANNER="blink_planner"
 STAGE_CONNECTORS="connectors"
 STAGE_KAFKA_GELLY="kafka/gelly"
 STAGE_TESTS="tests"
@@ -52,10 +53,12 @@ flink-table/flink-table-api-scala,\
 flink-table/flink-table-api-java-bridge,\
 flink-table/flink-table-api-scala-bridge,\
 flink-table/flink-table-planner,\
-flink-table/flink-table-planner-blink,\
-flink-table/flink-table-runtime-blink,\
 flink-table/flink-sql-client"
 
+MODULES_BLINK_PLANNER="\
+flink-table/flink-table-planner-blink,\
+flink-table/flink-table-runtime-blink"
+
 MODULES_CONNECTORS="\
 flink-contrib/flink-connector-wikiedits,\
 flink-filesystems,\
@@ -149,6 +152,9 @@ function get_compile_modules_for_stage() {
         (${STAGE_LIBRARIES})
             echo "-pl $MODULES_LIBRARIES -am"
         ;;
+        (${STAGE_BLINK_PLANNER})
+            echo "-pl $MODULES_BLINK_PLANNER -am"
+        ;;
         (${STAGE_CONNECTORS})
             echo "-pl $MODULES_CONNECTORS -am"
         ;;
@@ -171,14 +177,16 @@ function get_test_modules_for_stage() {
 
     local modules_core=$MODULES_CORE
     local modules_libraries=$MODULES_LIBRARIES
+    local modules_blink_planner=$MODULES_BLINK_PLANNER
     local modules_connectors=$MODULES_CONNECTORS
     local modules_tests=$MODULES_TESTS
     local negated_core=\!${MODULES_CORE//,/,\!}
     local negated_libraries=\!${MODULES_LIBRARIES//,/,\!}
+    local negated_blink_planner=\!${MODULES_BLINK_PLANNER//,/,\!}
     local negated_kafka_gelly=\!${MODULES_KAFKA_GELLY//,/,\!}
     local negated_connectors=\!${MODULES_CONNECTORS//,/,\!}
     local negated_tests=\!${MODULES_TESTS//,/,\!}
-    local modules_misc="$negated_core,$negated_libraries,$negated_connectors,$negated_kafka_gelly,$negated_tests"
+    local modules_misc="$negated_core,$negated_libraries,$negated_blink_planner,$negated_connectors,$negated_kafka_gelly,$negated_tests"
 
     # various modules fail testing on JDK 9; exclude them
     if [[ ${PROFILE} == *"jdk9"* ]]; then
@@ -192,6 +200,9 @@ function get_test_modules_for_stage() {
         (${STAGE_LIBRARIES})
             echo "-pl $modules_libraries"
         ;;
+        (${STAGE_BLINK_PLANNER})
+            echo "-pl $modules_blink_planner"
+        ;;
         (${STAGE_CONNECTORS})
             echo "-pl $modules_connectors"
         ;;