"src/client/vscode:/vscode.git/clone" did not exist on "569287a74a72a7e2ded5f5b745c6fa1b29f320c0"
Commit e3b3613f authored by limm's avatar limm
Browse files

add jenkins.sh

parent b6e8af14
#!/bin/bash
set -e
source /opt/dtk/env.sh
export FORCE_CUDA=1
source /usr/local/bin/fastpt -C
echo "开始编译组件vision"
python3 setup.py -v bdist_wheel
echo "组件vision编译完成"
ls dist/
pip install dist/*.whl
pip install dist/*.whl --force-reinstall --no-deps
echo "组件vision安装完成"
echo "开始vision单元测试"
if command -v pytest &> /dev/null; then
echo "pytest 已安装,版本: $(pytest --version)"
# 跳过安装
else
echo "pytest 未安装,正在安装..."
# 使用 pip 安装 (最常见)
pip install pytest
fi
pytest -vs ./test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment