File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11language : cpp
2- cache : ccache
2+ cache :
3+ directories :
4+ - $HOME/third_party
5+ - $HOME/.ccache
6+ - $HOME/.cache/pip
37sudo : required
48dist : trusty
59os :
@@ -35,6 +39,7 @@ addons:
3539 - clang-format-3.8
3640 - automake
3741 - libtool
42+ - ccache
3843before_install :
3944 - |
4045 if [ ${JOB} == "BUILD_AND_TEST" ]; then
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
66 export PYTHONPATH=/opt/python/2.7.12/lib/python2.7/site-packages
77 export PYTHONHOME=/opt/python/2.7.12
88 export PATH=/opt/python/2.7.12/bin:${PATH}
9- cmake .. -DON_TRAVIS=ON -DON_COVERALLS=ON -DCOVERALLS_UPLOAD=ON
9+ cmake .. -DON_TRAVIS=ON -DON_COVERALLS=ON -DCOVERALLS_UPLOAD=ON ${EXTRA_CMAKE_OPTS}
1010 NRPOC=` nproc`
1111 make -j $NPROC
1212 make coveralls
1313 sudo make install
1414elif [[ " $TRAVIS_OS_NAME " == " osx" ]]; then
1515 export PYTHONPATH=/usr/local/lib/python2.7/site-packages
16- cmake .. -DON_TRAVIS=ON -DON_COVERALLS=ON -DCOVERALLS_UPLOAD=ON
16+ cmake .. -DON_TRAVIS=ON -DON_COVERALLS=ON -DCOVERALLS_UPLOAD=ON ${EXTRA_CMAKE_OPTS}
1717 NPROC=` sysctl -n hw.ncpu`
1818 make -j $NPROC
1919fi
Original file line number Diff line number Diff line change 22set -e
33mkdir -p ../../../build
44cd ../../../build
5+ mkdir -p $HOME /third_party
6+ EXTRA_CMAKE_OPTS=" -DTHIRD_PARTY_PATH=${HOME} /third_party"
Original file line number Diff line number Diff line change 44source ./common.sh
55
66# Compile Documentation only.
7- cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=ON
7+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=ON ${EXTRA_CMAKE_OPTS}
88make paddle_docs paddle_docs_cn
99
1010# check websites for broken links
You can’t perform that action at this time.
0 commit comments