Skip to content

Commit

Permalink
Revert "[hotfix][travis] Run pre-commit e2e tests in compile stage"
Browse files Browse the repository at this point in the history
This reverts commit 2f7d473.
  • Loading branch information
zentol committed Jun 14, 2019
1 parent b63c0f1 commit 22305ef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tools/travis_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,26 +126,6 @@ if [ $STAGE == "$STAGE_COMPILE" ]; then
echo "=============================================================================="
fi

if [[ ${PROFILE} == *"jdk9"* ]]; then
printf "\n\n==============================================================================\n"
printf "Skipping end-to-end tests since they fail on Java 9.\n"
printf "==============================================================================\n"
else
if [ $EXIT_CODE == 0 ]; then
printf "\n\n==============================================================================\n"
printf "Running end-to-end tests\n"
printf "==============================================================================\n"

FLINK_DIR=build-target flink-end-to-end-tests/run-pre-commit-tests.sh

EXIT_CODE=$?
else
printf "\n==============================================================================\n"
printf "Previous build failure detected, skipping end-to-end tests.\n"
printf "==============================================================================\n"
fi
fi

if [ $EXIT_CODE == 0 ]; then
echo "Creating cache build directory $CACHE_FLINK_DIR"
mkdir -p "$CACHE_FLINK_DIR"
Expand Down
25 changes: 25 additions & 0 deletions tools/travis_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,30 @@ upload_artifacts_s3
# we are going back to
cd ../../

# only run end-to-end tests in misc because we only have flink-dist here
if [[ ${PROFILE} == *"jdk9"* ]]; then
printf "\n\n==============================================================================\n"
printf "Skipping end-to-end tests since they fail on Java 9.\n"
printf "==============================================================================\n"
else
case $TEST in
(misc)
if [ $EXIT_CODE == 0 ]; then
printf "\n\n==============================================================================\n"
printf "Running end-to-end tests\n"
printf "==============================================================================\n"

FLINK_DIR=build-target flink-end-to-end-tests/run-pre-commit-tests.sh

EXIT_CODE=$?
else
printf "\n==============================================================================\n"
printf "Previous build failure detected, skipping end-to-end tests.\n"
printf "==============================================================================\n"
fi
;;
esac
fi

# Exit code for Travis build success/failure
exit $EXIT_CODE

0 comments on commit 22305ef

Please sign in to comment.