Files
openclaw-workspace/jenkins_test.xml
2026-02-19 21:08:22 +09:00

42 lines
1.4 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<project>
<description>Test job - runs all unit tests</description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM">
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://gittea.cloud-handson.com/joungmin/openclaw-workspace.git</url>
<credentialsId>gitea-credentials</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/main</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions/>
</scm>
<assignedNode>built-in</assignedNode>
<builders>
<hudson.tasks.Shell>
<command>python3 -m venv venv
. venv/bin/activate
pip install -r test_requirements.txt</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.tasks.JUnitResultArchiver>
<testResults>test-results.xml</testResults>
<allowEmptyResults>true</allowEmptyResults>
</hudson.tasks.JUnitResultArchiver>
<hudson.tasks.Shell>
<command>. venv/bin/activate
pytest tests/ -v --junitxml=test-results.xml --cov=. --cov-report=html</command>
</hudson.tasks.Shell>
</publishers>
<buildWrappers/>
</project>