Skip to content

Commit 81e0f5a

Browse files
committed
correct with_testing option
1 parent 07d2e0f commit 81e0f5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/scripts/docker/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ cmake .. \
3535
-DWITH_SWIG_PY=ON \
3636
-DCUDNN_ROOT=/usr/ \
3737
-DWITH_STYLE_CHECK=${WITH_STYLE_CHECK:-OFF} \
38-
-DON_COVERALLS=${WITH_TEST:-OFF} \
38+
-DWITH_TESTING=${WITH_TESTING:-OFF} \
3939
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4040
make -j `nproc`
41-
if [[ ${RUN_TEST:-OFF} == "ON" ]]; then
42-
make coveralls
41+
if [ ${WITH_TESTING:-OFF} == "ON" ] && [ ${RUN_TEST:-OFF} == "ON" ] ; then
42+
make test
4343
fi
4444
make install
4545
pip install /usr/local/opt/paddle/share/wheels/*.whl

0 commit comments

Comments
 (0)