This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
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 #203 from panesofglass/build
Update build
- Loading branch information
Showing
8 changed files
with
51 additions
and
30 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 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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
version: 4.0.0-aci-{build} | ||
|
||
image: Visual Studio 2017 | ||
build_script: | ||
- ps: dotnet --info | ||
- ps: dotnet restore | ||
- 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: '**\BenchmarkDotNet.Artifacts\**\*.*' | ||
- 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,21 @@ | ||
[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 Freya.sln /p:Version=$version$versionSuffix | ||
dotnet pack --no-build -c Release src/Freya /p:Version=$version$versionSuffix -o $psscriptroot/bin | ||
dotnet pack --no-build -c Release src/Freya.Hopac /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 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