1 Star 0 Fork 9

ctsky/DeepPavlov

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
node('cuda-module') {
timestamps {
try {
stage('Clean') {
sh "rm -rf .[^.] .??* *"
}
stage('Checkout') {
sh "cp -r ${pwd()}@script/* ."
}
stage('Setup') {
env.TFHUB_CACHE_DIR="tfhub_cache"
env.LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64"
sh """
virtualenv --python=python3.7 '.venv-$BUILD_NUMBER'
. '.venv-$BUILD_NUMBER/bin/activate'
pip install .[tests,docs]
pip install -r deeppavlov/requirements/tf-gpu.txt
rm -rf `find . -mindepth 1 -maxdepth 1 ! -name tests ! -name Jenkinsfile ! -name docs ! -name '.venv-$BUILD_NUMBER'`
"""
}
stage('Tests') {
sh """
. /etc/profile
module add cuda/10.0
. .venv-$BUILD_NUMBER/bin/activate
cd docs
make clean
make html
cd ..
flake8 `python -c 'import deeppavlov; print(deeppavlov.__path__[0])'` --count --select=E9,F63,F7,F82 --show-source --statistics
pytest -v --disable-warnings
"""
currentBuild.result = 'SUCCESS'
}
}
catch(e) {
currentBuild.result = 'FAILURE'
throw e
}
finally {
emailext to: '${DEFAULT_RECIPIENTS}',
subject: "${env.JOB_NAME} - Build # ${currentBuild.number} - ${currentBuild.result}!",
body: '${BRANCH_NAME} - ${BUILD_URL}',
attachLog: true
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sksky/DeepPavlov.git
git@gitee.com:sksky/DeepPavlov.git
sksky
DeepPavlov
DeepPavlov
master

搜索帮助