Skip to content

Commit

Permalink
TeamCity change in 'Ribasim / Ribasim' project: artifact dependencies…
Browse files Browse the repository at this point in the history
… of 'Test libribasim - Windows' build configuration were updated
  • Loading branch information
visser_mn authored and visr committed Sep 14, 2023
1 parent 54329ce commit 18db749
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,32 @@
<options>
<option name="artifactRules" value="python\ribasim_api\tests\temp =&gt; test_output.zip" />
</options>
<disabled-settings>
<setting-ref ref="RQ_436" />
</disabled-settings>
<parameters>
<param name="conda_env_path" value="%system.teamcity.build.checkoutDir%/libribasim_test_env" />
</parameters>
<build-runners>
<runner id="RUNNER_1501" name="Set up virtual environment" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[if exist "%conda_env_path%" rd /q /s "%conda_env_path%"
call conda create --prefix "%conda_env_path%" python=3.10]]></param>
<param name="teamcity.build.workingDir" value="imod_coupler" />
call conda env create --file environment.yml -p "%conda_env_path%"]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
<runner id="RUNNER_1502" name="Install Python packages" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[call conda activate "%conda_env_path%"
call pip install --editable "python/ribasim"
call pip install --editable "python/ribasim_testmodels"
call pip install --editable "python/ribasim_api[tests]"]]></param>
pip install "python/ribasim"
pip install "python/ribasim_testmodels"
pip install "python/ribasim_api"]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
<runner id="RUNNER_1503" name="Run tests" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[call conda activate "%conda_env_path%"
call pytest tests --basetemp=tests/temp --junitxml="report.xml"]]></param>
pytest tests --basetemp=tests/temp --junitxml="report.xml"]]></param>
<param name="teamcity.build.workingDir" value="python/ribasim_api" />
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
Expand All @@ -46,8 +42,7 @@ call pytest tests --basetemp=tests/temp --junitxml="report.xml"]]></param>
<vcs-entry-ref root-id="Ribasim_Ribasim_Ribasim" />
</vcs-settings>
<requirements>
<equals id="RQ_436" name="teamcity.agent.jvm.os.name" value="Windows 10" />
<does-not-equal id="RQ_96" name="system.agent.name" value="c-teamcity0358" />
<equals id="RQ_315" name="env.OS" value="Windows_NT" />
</requirements>
<build-triggers>
<build-trigger id="TRIGGER_64" type="buildDependencyTrigger">
Expand Down Expand Up @@ -78,7 +73,7 @@ call pytest tests --basetemp=tests/temp --junitxml="report.xml"]]></param>
</build-extensions>
<artifact-dependencies>
<dependency id="ARTIFACT_DEPENDENCY_570" sourceBuildTypeId="Ribasim_RibasimJl_BuildLibribasimWindows" cleanDestination="true">
<revisionRule name="lastSuccessful" revision="latest.lastSuccessful" />
<revisionRule name="lastSuccessful" revision="latest.lastSuccessful" branch="+:&lt;default&gt;&#xD;&#xA;+:ref" />
<artifact sourcePath="libribasim.zip!** =&gt; build/create_binaries/libribasim&#xD;&#xA;" />
</dependency>
</artifact-dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="d5e2515e-f7f0-4248-9df0-928bb0db1362" paused="true" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Test ribasim_cli - Windows</name>
<description />
<settings>
<options>
<option name="artifactRules" value="build\ribasim_cli\tests\temp =&gt; test_output.zip" />
</options>
<parameters>
<param name="conda_env_path" value="%system.teamcity.build.checkoutDir%/ribasim_cli_test_env" />
</parameters>
<build-runners>
<runner id="RUNNER_1501" name="Set up virtual environment" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[if exist "%conda_env_path%" rd /q /s "%conda_env_path%"
call conda env create --file environment.yml -p "%conda_env_path%"]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
<runner id="RUNNER_1502" name="Install Python packages" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[call conda activate "%conda_env_path%"
pip install --no-deps "python/ribasim"
pip install --no-deps "python/ribasim_testmodels"]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
<runner id="RUNNER_1503" name="Run tests" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[call conda activate "%conda_env_path%"
pytest tests --basetemp=tests/temp --junitxml="report.xml"]]></param>
<param name="teamcity.build.workingDir" value="build/ribasim_cli" />
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
</build-runners>
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim_Ribasim" />
</vcs-settings>
<requirements>
<equals id="RQ_310" name="env.OS" value="Windows_NT" />
</requirements>
<build-triggers>
<build-trigger id="TRIGGER_64" type="buildDependencyTrigger">
<parameters>
<param name="afterSuccessfulBuildOnly" value="true" />
<param name="branchFilter" value="+:&lt;default&gt;" />
<param name="dependsOn" value="BuildRibasimCliWindows" />
</parameters>
</build-trigger>
</build-triggers>
<build-extensions>
<extension id="BUILD_EXT_142" type="commit-status-publisher">
<parameters>
<param name="github_authentication_type" value="token" />
<param name="github_host" value="https://api.github.com" />
<param name="publisherId" value="githubStatusPublisher" />
<param name="secure:github_access_token" value="credentialsJSON:71420214-373c-4ccd-ba32-2ea886843f62" />
<param name="vcsRootId" value="Ribasim_Ribasim_Ribasim" />
</parameters>
</extension>
<extension id="BUILD_EXT_145" type="xml-report-plugin">
<parameters>
<param name="xmlReportParsing.reportDirs" value="build/ribasim_cli/report.xml" />
<param name="xmlReportParsing.reportType" value="junit" />
<param name="xmlReportParsing.verboseOutput" value="true" />
</parameters>
</extension>
</build-extensions>
<artifact-dependencies>
<dependency id="ARTIFACT_DEPENDENCY_570" sourceBuildTypeId="BuildRibasimCliWindows" cleanDestination="true">
<revisionRule name="lastSuccessful" revision="latest.lastSuccessful" />
<artifact sourcePath="ribasim_cli.zip!** =&gt; build/create_binaries/ribasim_cli&#xD;&#xA;" />
</dependency>
</artifact-dependencies>
<cleanup />
</settings>
</build-type>

0 comments on commit 18db749

Please sign in to comment.