未验证 提交 58a7a35f 编写于 作者: V Varun Arora 提交者: GitHub

Update the docs building workflow for PPO (#521)

* Update the travis script

* update doc generate path

* revert test

* test

* test

* test

* test

* test

* Update script

* Pull from PPO develop branch to test

* Remove tmp print messages

* We don't need no, PYTHONIFICATION

* Fill small shell typo
上级 20045033
#!/usr/bin/env bash
exit_code=0
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then exit $exit_code; fi;
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then exit 0; fi;
if [[ "$TRAVIS_BRANCH" != "develop" ]]; then exit 0; fi;
export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/master/scripts/deploy/deploy_docs.sh
export DOCS_DIR=`pwd`
cd ..
curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR
if [ "$TRAVIS_BRANCH" == "develop_doc" ]; then
PPO_SCRIPT_BRANCH=develop
elif [[ "$TRAVIS_BRANCH" == "develop" ]]; then
PPO_SCRIPT_BRANCH=master
else
exit $exit_code;
fi
export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/$PPO_SCRIPT_BRANCH/scripts/deploy/deploy_docs.sh
docker run -it \
-e CONTENT_DEC_PASSWD=$CONTENT_DEC_PASSWD \
-e TRAVIS_BRANCH=$TRAVIS_BRANCH \
-e DEPLOY_DOCS_SH=$DEPLOY_DOCS_SH \
-e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \
-e PPO_SCRIPT_BRANCH=$PPO_SCRIPT_BRANCH \
-e PADDLE_ROOT=/VisualDL \
-v "$PWD:/VisualDL" \
-w /VisualDL \
paddlepaddle/paddle:latest-dev \
/bin/bash -c 'curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH /VisualDL /VisualDL/build/doc/ $PPO_SCRIPT_BRANCH' || exit_code=$(( exit_code | $? ))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册