Commit 9509805b authored by limm's avatar limm
Browse files

Merge branch '0.6.16-fastpt-jenkins' into '0.6.16-fastpt'

add jenkins.sh

See merge request !9
parents dee1f183 5720d894
#!/bin/bash
export FORCE_CUDA=1
source /usr/local/bin/fastpt -C
python setup.py bdist_wheel
pip install dist/*.whl
#!/bin/bash #!/bin/bash
set -e
source /opt/dtk/env.sh
export FORCE_CUDA=1
source /usr/local/bin/fastpt -C
echo "开始编译组件torch-sparce "
python setup.py bdist_wheel
echo "组件torch-sparce编译完成"
ls dist/
pip install dist/*.whl --force-reinstall --no-deps
echo "组件torch-sparce安装完成"
echo "开始torch-sparce单元测试"
if command -v pytest &> /dev/null; then if command -v pytest &> /dev/null; then
echo "pytest 已安装,版本: $(pytest --version)" echo "pytest 已安装,版本: $(pytest --version)"
# 跳过安装 # 跳过安装
...@@ -7,8 +24,9 @@ else ...@@ -7,8 +24,9 @@ else
echo "pytest 未安装,正在安装..." echo "pytest 未安装,正在安装..."
# 使用 pip 安装 (最常见) # 使用 pip 安装 (最常见)
pip install pytest pip install pytest
fi fi
pytest -vs ./test 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