You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ji...@apache.org on 2019/05/19 22:41:03 UTC
[flink] branch master updated: [FLINK-12534][travis][python] Reduce
the test cost for Python API
This is an automated email from the ASF dual-hosted git repository.
jincheng 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 063ee1b [FLINK-12534][travis][python] Reduce the test cost for Python API
063ee1b is described below
commit 063ee1bb11a580123ea0212b2c617ec6f71fc72a
Author: Wei Zhong <we...@gmail.com>
AuthorDate: Thu May 16 19:37:15 2019 +0800
[FLINK-12534][travis][python] Reduce the test cost for Python API
This is close #8465
---
.travis.yml | 10 +---------
tools/travis_controller.sh | 5 ++++-
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 6a8ff9d..d0b6ec1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -120,10 +120,6 @@ jobs:
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
name: core - hadoop 2.4.1
- if: type = cron
- script: ./tools/travis_controller.sh python
- env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
- name: python - hadoop 2.4.1
- - if: type = cron
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.4.1 -Pinclude-kinesis"
name: libraries - hadoop 2.4.1
@@ -156,10 +152,6 @@ jobs:
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
name: core - scala 2.12
- if: type = cron
- script: ./tools/travis_controller.sh python
- env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
- name: python - scala 2.12
- - if: type = cron
script: ./tools/travis_controller.sh libraries
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.12"
name: libraries - scala 2.12
@@ -197,7 +189,7 @@ jobs:
jdk: "openjdk9"
script: ./tools/travis_controller.sh python
env: PROFILE="-Dhadoop.version=2.8.3 -Pinclude-kinesis -Dinclude_hadoop_aws -Dscala-2.11 -Djdk9"
- name: python
+ name: python - jdk 9
- if: type = cron
jdk: "openjdk9"
script: ./tools/travis_controller.sh libraries
diff --git a/tools/travis_controller.sh b/tools/travis_controller.sh
index eef6503..6741d6a 100755
--- a/tools/travis_controller.sh
+++ b/tools/travis_controller.sh
@@ -158,7 +158,10 @@ if [ $STAGE == "$STAGE_COMPILE" ]; then
# by removing files not required for subsequent stages
# jars are re-built in subsequent stages, so no need to cache them (cannot be avoided)
- find "$CACHE_FLINK_DIR" -maxdepth 8 -type f -name '*.jar' ! -path "$CACHE_FLINK_DIR/flink-dist/*" ! -path "*tests.jar" | xargs rm -rf
+ find "$CACHE_FLINK_DIR" -maxdepth 8 -type f -name '*.jar' \
+ ! -path "$CACHE_FLINK_DIR/flink-dist/target/flink-*-bin/flink-*/lib/flink-dist*.jar" \
+ ! -path "$CACHE_FLINK_DIR/flink-dist/target/flink-*-bin/flink-*/opt/flink-table*.jar" \
+ ! -path "$CACHE_FLINK_DIR/flink-table/flink-table-planner/target/flink-table-planner*tests.jar" | xargs rm -rf
# .git directory
# not deleting this can cause build stability issues