-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from panesofglass/build
Update build to support tags
- Loading branch information
Showing
8 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
version: 5.0.1-aci-{build} | ||
|
||
image: Visual Studio 2017 | ||
build_script: | ||
- ps: dotnet --info | ||
- ps: dotnet restore | ||
- ps: dotnet build -c Release --version-suffix "aci-${env:APPVEYOR_BUILD_NUMBER}" | ||
- ps: dotnet pack -c Release --include-symbols --version-suffix "aci-${env:APPVEYOR_BUILD_NUMBER}" | ||
|
||
test: off | ||
|
||
- ps: | | ||
.\build.ps1 | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
artifacts: | ||
- path: '**\*.nupkg' | ||
- path: bin\*.nupkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[xml]$doc = Get-Content .\src\Directory.Build.props | ||
$version = $doc.Project.PropertyGroup.VersionPrefix # the version under development, update after a release | ||
$versionSuffix = '-build.0' # manually incremented for local builds | ||
|
||
function isVersionTag($tag){ | ||
$v = New-Object Version | ||
[Version]::TryParse($tag, [ref]$v) | ||
} | ||
|
||
if ($env:appveyor){ | ||
$versionSuffix = '-build.' + $env:appveyor_build_number | ||
if ($env:appveyor_repo_tag -eq 'true' -and (isVersionTag($env:appveyor_repo_tag_name))){ | ||
$version = $env:appveyor_repo_tag_name | ||
$versionSuffix = '' | ||
} | ||
Update-AppveyorBuild -Version "$version$versionSuffix" | ||
} | ||
|
||
dotnet build -c Release Hephaestus.sln /p:Version=$version$versionSuffix | ||
dotnet pack --no-build -c Release src/Hephaestus /p:Version=$version$versionSuffix -o $psscriptroot/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
<PropertyGroup> | ||
<Hopac>true</Hopac> | ||
</PropertyGroup> | ||
<Import Project="..\Hephaestus.Common.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="..\Hephaestus.Common.targets" /> | ||
</Project> |