提交 d758c6c4 编写于 作者: L Luo Tao

reduce travis-ci time of build_doc

上级 50fe7abe
...@@ -15,12 +15,11 @@ import sys ...@@ -15,12 +15,11 @@ import sys
import os, subprocess import os, subprocess
import shlex import shlex
from recommonmark import parser, transform from recommonmark import parser, transform
sys.path.append(os.path.abspath('@PROJ_ROOT@/python'))
try: try:
import py_paddle
import paddle import paddle
import paddle.v2 import paddle.v2
except ImportError: except ImportError:
print("Must install paddle python package before generating documentation")
sys.exit(1) sys.exit(1)
MarkdownParser = parser.CommonMarkParser MarkdownParser = parser.CommonMarkParser
......
...@@ -15,12 +15,11 @@ import sys ...@@ -15,12 +15,11 @@ import sys
import os, subprocess import os, subprocess
import shlex import shlex
from recommonmark import parser, transform from recommonmark import parser, transform
sys.path.append(os.path.abspath('@PROJ_ROOT@/python'))
try: try:
import py_paddle
import paddle import paddle
import paddle.v2 import paddle.v2
except ImportError: except ImportError:
print("Must install paddle python package before generating documentation")
sys.exit(1) sys.exit(1)
......
...@@ -5,13 +5,6 @@ set -e ...@@ -5,13 +5,6 @@ set -e
mkdir -p $TRAVIS_BUILD_DIR/build mkdir -p $TRAVIS_BUILD_DIR/build
cd $TRAVIS_BUILD_DIR/build cd $TRAVIS_BUILD_DIR/build
# Compile paddle binaries first
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=OFF -DWITH_MKLDNN=OFF -DWITH_MKLML=OFF -DWITH_GOLANG=ON -DWITH_STYLE_CHECK=OFF
mkdir output
make -j `nproc`
find .. -name '*whl' | xargs pip install # install all wheels.
rm -rf *
# Compile Documentation only. # Compile Documentation only.
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_MKLDNN=OFF -DWITH_MKLML=OFF -DWITH_DOC=ON cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_MKLDNN=OFF -DWITH_MKLML=OFF -DWITH_DOC=ON
make -j `nproc` paddle_docs paddle_docs_cn make -j `nproc` paddle_docs paddle_docs_cn
...@@ -35,6 +28,7 @@ TARGET_BRANCH="gh-pages" ...@@ -35,6 +28,7 @@ TARGET_BRANCH="gh-pages"
SOURCE_BRANCH="master" SOURCE_BRANCH="master"
# Clone the repo to output directory # Clone the repo to output directory
mkdir output
git clone $REPO output git clone $REPO output
cd output cd output
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册