Add Jenkins job configs (build, test, deploy)
This commit is contained in:
41
jenkins_test.xml
Normal file
41
jenkins_test.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user