mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Use generated Makefiles to run tests
This commit is contained in:
parent
2b88e82a2a
commit
e6d9ad31ab
43
Jenkinsfile
vendored
43
Jenkinsfile
vendored
@ -38,20 +38,9 @@ parallel_nodes(['linux && cura', 'windows && cura'])
|
|||||||
{
|
{
|
||||||
if (isUnix())
|
if (isUnix())
|
||||||
{
|
{
|
||||||
// For Linux to show everything
|
// For Linux
|
||||||
def branch = env.BRANCH_NAME
|
|
||||||
if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}"))
|
|
||||||
{
|
|
||||||
branch = "master"
|
|
||||||
}
|
|
||||||
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/${branch}")
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sh """
|
sh 'make CTEST_OUTPUT_ON_FAILURE=TRUE test'
|
||||||
cd ..
|
|
||||||
export PYTHONPATH=.:"${uranium_dir}"
|
|
||||||
${env.CURA_ENVIRONMENT_PATH}/${branch}/bin/pytest -x --verbose --full-trace --capture=no ./tests
|
|
||||||
"""
|
|
||||||
} catch(e)
|
} catch(e)
|
||||||
{
|
{
|
||||||
currentBuild.result = "UNSTABLE"
|
currentBuild.result = "UNSTABLE"
|
||||||
@ -70,34 +59,6 @@ parallel_nodes(['linux && cura', 'windows && cura'])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Code Style')
|
|
||||||
{
|
|
||||||
if (isUnix())
|
|
||||||
{
|
|
||||||
// For Linux to show everything.
|
|
||||||
// CMake also runs this test, but if it fails then the test just shows "failed" without details of what exactly failed.
|
|
||||||
def branch = env.BRANCH_NAME
|
|
||||||
if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}"))
|
|
||||||
{
|
|
||||||
branch = "master"
|
|
||||||
}
|
|
||||||
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/${branch}")
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
sh """
|
|
||||||
cd ..
|
|
||||||
export PYTHONPATH=.:"${uranium_dir}"
|
|
||||||
${env.CURA_ENVIRONMENT_PATH}/${branch}/bin/python3 run_mypy.py
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
catch(e)
|
|
||||||
{
|
|
||||||
currentBuild.result = "UNSTABLE"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user