Skip to content

Commit

Permalink
Restructure for dotnet cli builds
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeCampbell committed Jun 3, 2017
1 parent b94950d commit eb85319
Show file tree
Hide file tree
Showing 149 changed files with 49 additions and 1,268 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions HdrHistogram/HdrHistogram.csproj
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;netstandard1.3</TargetFrameworks>
<Description>HdrHistogram supports low latency recording and analyzing of sampled data value counts across a configurable integer value range with configurable value precision within the range.</Description>
<Authors>Gil Tene, Lee Campbell</Authors>
<PackageReleaseNotes>NetStandard release</PackageReleaseNotes>
<Copyright>Copyright 2017</Copyright>
<PackageTags>HdrHistogram HdrHistogram.NET Histogram Instrumentation</PackageTags>
<PackageProjectUrl>https://github.com/HdrHistogram/HdrHistogram.NET</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/HdrHistogram/HdrHistogram.NET/master/LICENSE.txt</PackageLicenseUrl>
<PackageIconUrl>http://hdrhistogram.github.io/HdrHistogram.NET/HdrHistogram-icon-64x64.png</PackageIconUrl>
<RepositoryUrl>https://github.com/HdrHistogram/HdrHistogram.NET</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net45|AnyCPU'">
<DocumentationFile>bin\Release\net45\HdrHistogram.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard1.3|AnyCPU'">
<DocumentationFile>bin\Release\netstandard1.3\HdrHistogram.xml</DocumentationFile>
<DefineConstants>RELEASE;NETSTANDARD1_3</DefineConstants>
</PropertyGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 15 additions & 27 deletions appveyor.yml
@@ -1,51 +1,39 @@
version: 1.{build}.0
version: 2.{build}.0
pull_requests:
do_not_increment_build_number: true
image: WMF 5
image: Visual Studio 2017
build_script:
- ps: >-
Write-Host $env:APPVEYOR_BUILD_VERSION
Write-Host $env:APPVEYOR_PULL_REQUEST_NUMBER
Write-Host $env:APPVEYOR_PULL_REQUEST_TITLE
Write-Host $env:APPVEYOR_REPO_NAME
Write-Host $env:APPVEYOR_REPO_BRANCH
Write-Host $env:APPVEYOR_REPO_COMMIT
Write-Host $env:APPVEYOR_JOB_ID
$semver = $env:APPVEYOR_BUILD_VERSION;
if($env:APPVEYOR_PULL_REQUEST_NUMBER -ge 0) {
$semver = "$semver-PR$env:APPVEYOR_PULL_REQUEST_NUMBER";
}
dotnet restore
Import-Module .\build\psake.psm1
Invoke-psake .\build\build.ps1 -taskList Test,Package -properties @{"semver"="$semver";}
Write-Host "Uploading test results"
$uploadPath = "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)"
$testResults = (Resolve-Path .\TestResult.xml)
Write-Host "Sending $testResults to $uploadPath"
$wc = New-Object 'System.Net.WebClient'
dotnet build -c=Release /p:Version=$semver
dotnet test .\HdrHistogram.UnitTests\HdrHistogram.UnitTests.csproj /p:Configuration=Release
$wc.UploadFile($uploadPath, $testResults)
dotnet pack .\HdrHistogram\HdrHistogram.csproj -c=Release --include-symbols /p:Version=$semver
test: off
artifacts:
- path: Working\Nuget\*.nupkg
- path: .\HdrHistogram\bin\Release\*.nupkg
notifications:
- provider: GitHubPullRequest
on_build_success: true
Expand Down
8 changes: 8 additions & 0 deletions build.cmd
@@ -0,0 +1,8 @@
SET SemVer="1.0.0.0-local"

pushd %~dp0%..\
dotnet restore .\src\
dotnet build .\src\ -c=Release /p:Version=%SemVer%
dotnet test .\src\HdrHistogram.UnitTests\HdrHistogram.UnitTests.csproj /p:Configuration=Release
dotnet pack .\src\HdrHistogram\HdrHistogram.csproj -c=Release --include-symbols /p:Version=%SemVer%
popd
19 changes: 0 additions & 19 deletions build/HdrHistogram.nuspec

This file was deleted.

Binary file removed build/HdrHistogram.snk
Binary file not shown.
5 changes: 0 additions & 5 deletions build/build.cmd

This file was deleted.

0 comments on commit eb85319

Please sign in to comment.