You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2020/03/06 04:38:24 UTC
[flink-statefun] branch docs_experimental__docs updated: Fix paths
in lint-python.sh
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a commit to branch docs_experimental__docs
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git
The following commit(s) were added to refs/heads/docs_experimental__docs by this push:
new bbe6d33 Fix paths in lint-python.sh
bbe6d33 is described below
commit bbe6d33b6a5d1e5e25f3f7593db4714a93795034
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Fri Mar 6 12:37:35 2020 +0800
Fix paths in lint-python.sh
---
statefun-docs/buildbot/lint-python.sh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/statefun-docs/buildbot/lint-python.sh b/statefun-docs/buildbot/lint-python.sh
index 1a29759..f29e29d 100755
--- a/statefun-docs/buildbot/lint-python.sh
+++ b/statefun-docs/buildbot/lint-python.sh
@@ -526,7 +526,7 @@ function tox_check() {
print_function "STAGE" "tox checks"
# Set created py-env in $PATH for tox's creating virtual env
activate
- $TOX_PATH -c $FLINK_PYTHON_DIR/tox.ini --recreate 2>&1 | tee -a $LOG_FILE
+ $TOX_PATH -c $FLINK_STATEFUN_DOCS_DIR/tox.ini --recreate 2>&1 | tee -a $LOG_FILE
TOX_RESULT=$((grep -c "congratulations :)" "$LOG_FILE") 2>&1)
if [ $TOX_RESULT -eq '0' ]; then
@@ -575,8 +575,8 @@ function flake8_check() {
# Sphinx check
function sphinx_check() {
export SPHINXBUILD=$SPHINX_PATH
- # cd to $FLINK_PYTHON_DIR
- pushd "$FLINK_PYTHON_DIR"/docs &> /dev/null
+ # cd to $FLINK_STATEFUN_DOCS_DIR
+ pushd $FLINK_STATEFUN_DOCS_DIR &> /dev/null
make clean
# the return value of a pipeline is the status of the last command to exit
@@ -595,12 +595,12 @@ function sphinx_check() {
}
###############################################################All Checks Definitions###############################################################
-# CURRENT_DIR is "flink/flink-python/dev/"
+# CURRENT_DIR is "flink-statefun/statefun-docs/buildbot/"
CURRENT_DIR="$(cd "$( dirname "$0" )" && pwd)"
-# FLINK_PYTHON_DIR is "flink/flink-python"
-FLINK_PYTHON_DIR=$(dirname "$CURRENT_DIR")
-pushd "$FLINK_PYTHON_DIR" &> /dev/null
+# FLINK_STATEFUN_DOCS_DIR is "flink-statefun/statefun-docs"
+FLINK_STATEFUN_DOCS_DIR=$(dirname "$CURRENT_DIR")
+pushd "$FLINK_STATEFUN_DOCS_DIR" &> /dev/null
# conda home path
CONDA_HOME=$CURRENT_DIR/.conda