6 Star 8 Fork 0

Gitee 极速下载 / curaengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Ultimaker/CuraEngine
克隆/下载
Jenkinsfile 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
LipuFei 提交于 2019-03-27 11:53 . Show failed tests on Jenkins
parallel_nodes(["linux && cura", "windows && cura"]) {
timeout(time: 2, unit: "HOURS") {
stage('Prepare') {
step([$class: 'WsCleanup'])
checkout scm
}
catchError {
dir('build') {
stage('Build') {
def branch = env.BRANCH_NAME
if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}")) {
branch = "master"
}
extra_cmake_args = ""
if(!isUnix()) {
extra_cmake_args = "-DArcus_DIR=\"${env.CURA_ENVIRONMENT_PATH}/${branch}/lib-mingw/cmake/Arcus\" -DGTEST_LIBRARY=\"${env.CURA_ENVIRONMENT_PATH}/${branch}/lib-mingw/libgtest.a\" -DGTEST_MAIN_LIBRARY=\"${env.CURA_ENVIRONMENT_PATH}/${branch}/lib-mingw/libgtest_main.a\" -DGMOCK_LIBRARY=\"${env.CURA_ENVIRONMENT_PATH}/${branch}/lib-mingw/libgmock.a\" -DGMOCK_MAIN_LIBRARY=\"${env.CURA_ENVIRONMENT_PATH}/${branch}/lib-mingw/libgmock_main.a\""
}
cmake '..', "-DCMAKE_PREFIX_PATH=\"${env.CURA_ENVIRONMENT_PATH}/${branch}\" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON ${extra_cmake_args}"
make('')
}
// Try and run the unit tests. If this stage fails, we consider the build to be "unstable".
stage('Unit Test') {
if (isUnix())
{
// For Linux
try {
sh 'make CTEST_OUTPUT_ON_FAILURE=TRUE test'
} catch(e)
{
currentBuild.result = "UNSTABLE"
}
}
else
{
// For Windows
try
{
// This also does code style checks.
bat 'ctest -V'
} catch(e)
{
currentBuild.result = "UNSTABLE"
}
}
}
}
}
stage('Finalize') {
notify_build_result(env.CURA_EMAIL_RECIPIENTS, '#cura-dev', ['master'])
}
}
}
1
https://gitee.com/mirrors/curaengine.git
git@gitee.com:mirrors/curaengine.git
mirrors
curaengine
curaengine
master

搜索帮助