diff --git a/paddle/scripts/travis/docs.sh b/paddle/scripts/travis/docs.sh index 53e998ef6c1b96d9e7d82b7effd12a27e6dc69f2..c784293695bf134b5e990639778b6e84ba45d00d 100755 --- a/paddle/scripts/travis/docs.sh +++ b/paddle/scripts/travis/docs.sh @@ -5,8 +5,8 @@ source ./common.sh # Compile Documentation only. cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran-4.8 -DWITH_GPU=OFF -DWITH_DOC=OFF -DWITH_STYLE_CHECK=OFF ${EXTRA_CMAKE_OPTS} mkdir output -make DESTDIR=./output install -j `nproc` -pip install ./output/usr/local/opt/paddle/share/wheels/* +make -j `nproc` +find .. -name '*whl' | xargs pip install # install all wheels. rm -rf * cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran-4.8 -DWITH_GPU=OFF -DWITH_DOC=ON ${EXTRA_CMAKE_OPTS} make paddle_docs paddle_docs_cn