Skip to content

Commit

Permalink
Shorten up the package build props file.
Browse files Browse the repository at this point in the history
This should make it easier to edit it in the future as well.
  • Loading branch information
AraHaan authored Oct 21, 2021
1 parent 99edaf4 commit 763ec76
Showing 1 changed file with 31 additions and 61 deletions.
92 changes: 31 additions & 61 deletions src/DotNet.ReproducibleBuilds/DotNet.ReproducibleBuilds.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,67 +12,37 @@

<!-- Enable ContinuousIntegrationBuild when running on CI -->

<!-- Azure Pipelines / DevOpsServer -->
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- GitHub Actions -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- AppVeyor -->
<PropertyGroup Condition="'$(APPVEYOR)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Set by many build agents -->
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Travis CI -->
<PropertyGroup Condition="'$(TRAVIS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Circle CI -->
<PropertyGroup Condition="'$(CIRCLECI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- AWS CodeBuild -->
<PropertyGroup Condition="'$(CODEBUILD_BUILD_ID)' != '' and '$(AWS_REGION)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Jenkins
https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
-->
<PropertyGroup Condition="'$(BUILD_ID)' != '' and '$(BUILD_URL)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Google Cloud Build
https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values
-->
<PropertyGroup Condition="'$(BUILD_ID)' != '' and '$(PROJECT_ID)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- TeamCity
https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#Server+Build+Properties
-->
<PropertyGroup Condition="'$(TEAMCITY_VERSION)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- JetBrains Space
https://www.jetbrains.com/help/space/automation-environment-variables.html#general
-->
<PropertyGroup Condition="'$(JB_SPACE_API_URL)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<PropertyGroup>
<!-- Azure Pipelines / DevOpsServer -->
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">true</ContinuousIntegrationBuild>
<!-- GitHub Actions -->
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<!-- AppVeyor -->
<ContinuousIntegrationBuild Condition="'$(APPVEYOR)' == 'true'">true</ContinuousIntegrationBuild>
<!-- Set by many build agents -->
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
<!-- Travis CI -->
<ContinuousIntegrationBuild Condition="'$(TRAVIS)' == 'true'">true</ContinuousIntegrationBuild>
<!-- Circle CI -->
<ContinuousIntegrationBuild Condition="'$(CIRCLECI)' == 'true'">true</ContinuousIntegrationBuild>
<!-- AWS CodeBuild -->
<ContinuousIntegrationBuild Condition="'$(CODEBUILD_BUILD_ID)' != '' and '$(AWS_REGION)' != '' ">true</ContinuousIntegrationBuild>
<!-- Jenkins
https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
-->
<ContinuousIntegrationBuild Condition="'$(BUILD_ID)' != '' and '$(BUILD_URL)' != '' ">true</ContinuousIntegrationBuild>
<!-- Google Cloud Build
https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values
-->
<ContinuousIntegrationBuild Condition="'$(BUILD_ID)' != '' and '$(PROJECT_ID)' != '' ">true</ContinuousIntegrationBuild>
<!-- TeamCity
https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#Server+Build+Properties
-->
<ContinuousIntegrationBuild Condition="'$(TEAMCITY_VERSION)' != '' ">true</ContinuousIntegrationBuild>
<!-- JetBrains Space
https://www.jetbrains.com/help/space/automation-environment-variables.html#general
-->
<ContinuousIntegrationBuild Condition="'$(JB_SPACE_API_URL)' != '' ">true</ContinuousIntegrationBuild>
</PropertyGroup>

</Project>

0 comments on commit 763ec76

Please sign in to comment.