From e8747d8387342bbfdcac700064d9ed4201e5bb99 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Mon, 1 Apr 2019 02:17:36 +0000 Subject: [PATCH] fix linux ci check test=develop --- paddle/scripts/paddle_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 24a77d09b1..fc52c281c4 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -427,8 +427,10 @@ function assert_api_not_changed() { python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec # Currently, we only check in PR_CI python 2.7 - if [ "$1" == "cp27-cp27m" ]; then - python ${PADDLE_ROOT}/tools/diff_use_default_grad_op_maker.py ${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec + if [ "$SYSTEM" != "Darwin" ]; then + if [ "$1" == "" ] || [ "$1" == "cp27-cp27m" ] || [ "$1" == "cp27-cp27mu" ]; then + python ${PADDLE_ROOT}/tools/diff_use_default_grad_op_maker.py ${PADDLE_ROOT}/paddle/fluid/op_use_default_grad_op_maker.spec + fi fi deactivate } -- GitLab