提交 1c10dac4 编写于 作者: T tianshuo78520a 提交者: Cheerego

Add code example in CI (#18228)

* test api example

* update python

* add sampcd_processor.py

* add if 0

* sort

* test paddle

* test paddle

* test paddle

* add whitelist

* change sampcd_processor.py

* change sampcd_processor.py

* change sampcd_processor.py

* add exit

* test=develop

* test=develop
上级 be24e5b3
......@@ -967,6 +967,18 @@ function build_document_preview() {
}
function example() {
pip install /paddle/build/python/dist/paddlepaddle-0.10.0-cp27-cp27mu-linux_x86_64.whl
paddle version
cd ${PADDLE_ROOT}/python/paddle/fluid
python sampcd_processor.py
if [ "$?" != "0" ];then
echo "Code instance execution failed"
exit 1
fi
}
function main() {
local CMD=$1
local parallel_number=$2
......@@ -981,6 +993,7 @@ function main() {
build ${parallel_number}
assert_api_not_changed ${PYTHON_ABI:-""}
assert_api_spec_approvals
example
;;
build)
cmake_gen ${PYTHON_ABI:-""}
......@@ -1073,6 +1086,9 @@ function main() {
build ${parallel_number}
build_document_preview
;;
api_example)
example
;;
*)
print_usage
exit 1
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册