1 Star 0 Fork 145

人工智能 / fastNLP

forked from fastNLP / fastNLP 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.Jenkinsfile 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
WillQvQ 提交于 2020-11-23 13:00 . 把测试文件夹 test 改名为 tests
pipeline {
agent {
docker {
image 'ubuntu_tester'
args '-u root:root -v ${HOME}/html/docs:/docs -v ${HOME}/html/_ci:/ci'
}
}
environment {
TRAVIS = 1
PJ_NAME = 'fastNLP'
POST_URL = 'https://open.feishu.cn/open-apis/bot/v2/hook/14719364-818d-4f88-9057-7c9f0eaaf6ae'
}
stages {
stage('Package Installation') {
steps {
sh 'python setup.py install'
}
}
stage('Parallel Stages') {
parallel {
stage('Document Building') {
steps {
sh 'cd docs && make prod'
sh 'rm -rf /docs/${PJ_NAME}'
sh 'mv docs/build/html /docs/${PJ_NAME}'
}
}
stage('Package Testing') {
steps {
sh 'python -m spacy download en'
sh 'pip install fitlog'
sh 'pytest ./tests --html=test_results.html --self-contained-html'
}
}
}
}
}
post {
failure {
sh 'post 1'
}
success {
sh 'post 0'
sh 'post github'
}
}
}
Python
1
https://gitee.com/guanghua-ai/fastNLP.git
git@gitee.com:guanghua-ai/fastNLP.git
guanghua-ai
fastNLP
fastNLP
master

搜索帮助