Skip to content

Commit

Permalink
Merge branch 'main' into compound_condition_variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Apr 16, 2024
2 parents c662fe7 + d1c7377 commit ae2479c
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,64 @@
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="cf391998-fed9-4a22-ae44-8877d1028c10" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Build libribasim</name>
<description />
<settings ref="Ribasim_Linux_Build">
<settings>
<options>
<option name="artifactRules" value="ribasim\build\libribasim =&gt; libribasim.zip" />
<option name="cleanBuild" value="true" />
<option name="executionTimeoutMin" value="120" />
<option name="publishArtifactCondition" value="SUCCESSFUL" />
</options>
<parameters />
<build-runners />
<vcs-settings />
<requirements />
<build-runners>
<runner id="RUNNER_2415" name="Set up pixi" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[#!/bin/bash
# black magic
source /usr/share/Modules/init/bash
module load pixi
pixi --version
pixi run --environment=dev install-ci]]></param>
<param name="teamcity.build.workingDir" value="ribasim" />
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
</runner>
<runner id="RUNNER_2416" name="Build binary" type="simpleRunner">
<parameters>
<param name="script.content"><![CDATA[#!/bin/bash
# black magic
source /usr/share/Modules/init/bash
module load pixi
module load gcc/11.3.0
pixi run remove-artifacts
pixi run build-libribasim]]></param>
<param name="teamcity.build.workingDir" value="ribasim" />
<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">
<checkout-rule rule=". =&gt; ribasim" />
</vcs-entry-ref>
</vcs-settings>
<requirements>
<equals id="RQ_275" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<build-triggers />
<build-extensions>
<extension id="BUILD_EXT_295" 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:6b37af71-1f2f-4611-8856-db07965445c0" />
</parameters>
</extension>
</build-extensions>
<cleanup />
</settings>
</build-type>
Expand Down
19 changes: 19 additions & 0 deletions .teamcity/Ribasim_Linux/buildTypes/Ribasim_Linux_Os.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="1a62a1c8-edfc-4fcf-bd8d-0839b10664a3" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Os</name>
<description>Template for agent that uses Linux OS</description>
<settings>
<options>
<option name="publishArtifactCondition" value="SUCCESSFUL" />
</options>
<parameters />
<build-runners />
<vcs-settings />
<requirements>
<equals id="RQ_418" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<build-triggers />
<cleanup />
</settings>
</template>

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="7bd3078e-0f15-487c-b9d6-dd3417d60fe6" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Test ribasim_api</name>
<description />
<settings ref="Ribasim_Linux_Build">
<settings>
<options>
<option name="artifactRules" value="ribasim\python\ribasim_api\tests\temp =&gt; test_output.zip" />
<option name="cleanBuild" value="true" />
<option name="executionTimeoutMin" value="120" />
<option name="publishArtifactCondition" value="SUCCESSFUL" />
</options>
<parameters>
<param name="conda_env_path" value="%system.teamcity.build.checkoutDir%/libribasim_test_env" />
Expand Down Expand Up @@ -39,9 +42,14 @@ pixi run test-ribasim-api]]></param>
</parameters>
</runner>
</build-runners>
<vcs-settings />
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim">
<checkout-rule rule=". =&gt; ribasim" />
</vcs-entry-ref>
</vcs-settings>
<requirements>
<does-not-equal id="RQ_315" name="env.OS" value="Windows_NT" />
<equals id="RQ_275" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<build-triggers>
<build-trigger id="TRIGGER_642" type="schedulingTrigger">
Expand Down Expand Up @@ -76,6 +84,14 @@ pixi run test-ribasim-api]]></param>
<param name="xmlReportParsing.verboseOutput" value="true" />
</parameters>
</extension>
<extension id="BUILD_EXT_295" 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:6b37af71-1f2f-4611-8856-db07965445c0" />
</parameters>
</extension>
</build-extensions>
<artifact-dependencies>
<dependency id="ARTIFACT_DEPENDENCY_570" sourceBuildTypeId="Ribasim_Linux_BuildLibribasim" cleanDestination="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="33150291-268d-4891-8743-ff91dc4e2ba4" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Test ribasim_cli</name>
<description />
<settings ref="Ribasim_Linux_Build">
<settings>
<options>
<option name="artifactRules" value="ribasim\build\tests\temp =&gt; test_output.zip" />
<option name="cleanBuild" value="true" />
<option name="executionTimeoutMin" value="120" />
<option name="publishArtifactCondition" value="SUCCESSFUL" />
</options>
<parameters>
<param name="conda_env_path" value="%system.teamcity.build.checkoutDir%/ribasim_cli_test_env" />
Expand Down Expand Up @@ -39,9 +42,14 @@ pixi run test-ribasim-cli]]></param>
</parameters>
</runner>
</build-runners>
<vcs-settings />
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim">
<checkout-rule rule=". =&gt; ribasim" />
</vcs-entry-ref>
</vcs-settings>
<requirements>
<does-not-equal id="RQ_310" name="env.OS" value="Windows_NT" />
<equals id="RQ_275" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<build-triggers>
<build-trigger id="TRIGGER_645" type="schedulingTrigger">
Expand Down Expand Up @@ -76,6 +84,14 @@ pixi run test-ribasim-cli]]></param>
<param name="xmlReportParsing.verboseOutput" value="true" />
</parameters>
</extension>
<extension id="BUILD_EXT_295" 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:6b37af71-1f2f-4611-8856-db07965445c0" />
</parameters>
</extension>
</build-extensions>
<artifact-dependencies>
<dependency id="ARTIFACT_DEPENDENCY_570" sourceBuildTypeId="Ribasim_Linux_BuildRibasimCli" cleanDestination="true">
Expand Down

0 comments on commit ae2479c

Please sign in to comment.