mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
6
third_party/dlpack/tests/scripts/task_build.sh
vendored
Executable file
6
third_party/dlpack/tests/scripts/task_build.sh
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
make || exit -1
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. || exit -1
|
||||
make || exit -1
|
||||
23
third_party/dlpack/tests/scripts/task_lint.sh
vendored
Executable file
23
third_party/dlpack/tests/scripts/task_lint.sh
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
mkdir -p bin
|
||||
|
||||
if [ ! -f bin/lint.py ]; then
|
||||
echo "Grab linter ..."
|
||||
wget https://raw.githubusercontent.com/dmlc/dmlc-core/main/scripts/lint.py
|
||||
mv lint.py bin/lint.py
|
||||
fi
|
||||
|
||||
echo "Check codestyle of c++ code..."
|
||||
python bin/lint.py dlpack cpp include contrib
|
||||
|
||||
echo "Check doxygen generation..."
|
||||
make doc 2>log.txt
|
||||
(cat log.txt| grep -v ENABLE_PREPROCESSING |grep -v "unsupported tag") > logclean.txt
|
||||
echo "---------Error Log----------"
|
||||
cat logclean.txt
|
||||
echo "----------------------------"
|
||||
(cat logclean.txt|grep warning) && exit -1
|
||||
(cat logclean.txt|grep error) && exit -1
|
||||
rm logclean.txt
|
||||
rm log.txt
|
||||
echo "All checks passed..."
|
||||
Reference in New Issue
Block a user