Skip to content

v2.0.0 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions .appveyor.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .azure/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
parameters:
path: ''
framework: ''
frameworkGlobal: true

steps:
- ${{ if eq(parameters.frameworkGlobal, 'false') }}:
- script: ${{ format('/home/vsts/.dotnet/dotnet test -f {0} --no-build --logger trx -c Release {1}', parameters.framework, parameters.path) }}
displayName: ${{ format('dotnet test -f {0}', parameters.framework) }}

- ${{ if eq(parameters.frameworkGlobal, 'true') }}:
- task: DotNetCoreCLI@2
displayName: ${{ format('dotnet test -f {0}', parameters.framework) }}
inputs:
command: test
projects: ${{ parameters.path }}
arguments: ${{ format('--no-build -f {0} -c Release', parameters.framework) }}
publishTestResults: true
33 changes: 33 additions & 0 deletions .azure/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
parameters:
netcore1Global: true

steps:
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: build
projects: msgpack.spec.sln
arguments: -c Release
verbosityRestore: minimal

- template: test.yml
parameters:
path: tests/msgpack.spec.tests/msgpack.spec.tests.csproj
framework: netcoreapp1.0
frameworkGlobal: ${{ parameters.netcore1Global }}

- template: test.yml
parameters:
path: tests/msgpack.spec.tests/msgpack.spec.tests.csproj
framework: netcoreapp1.1
frameworkGlobal: ${{ parameters.netcore1Global }}

- template: test.yml
parameters:
path: tests/msgpack.spec.tests/msgpack.spec.tests.csproj
framework: netcoreapp2.0

- template: test.yml
parameters:
path: tests/msgpack.spec.tests/msgpack.spec.tests.csproj
framework: netcoreapp2.1
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.

51 changes: 51 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
jobs:
- job: macOs
pool:
name: Hosted macOS
steps:
- template: .azure/tests.yml

- job: linux
pool:
name: Hosted Ubuntu 1604
steps:
- script: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -channel 1.1
displayName: Installing .netcore 1.1
- template: .azure/tests.yml
parameters:
netcore1Global: false

- job: win
dependsOn:
- macOs
- linux
pool:
name: Hosted VS2017
steps:
- template: .azure/tests.yml
- template: .azure/test.yml
parameters:
path: tests/msgpack.spec.tests/msgpack.spec.tests.csproj
framework: net46

- task: PowerShell@2
displayName: pack nuget package
inputs:
targetType: inline
script: |
$version = $(git describe --tags | %{$_ -replace '-([^g])', '.$1'})
dotnet pack --no-build -v minimal -c Release /property:Version=$version /property:PackageOutputPath=$(Build.ArtifactStagingDirectory)

- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- task: NuGetCommand@2
displayName: push nuget packages
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: api.nuget.org

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: .nupkgs
4 changes: 2 additions & 2 deletions benchmarks/msgpack.spec.linux/msgpack.spec.linux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.11.0" />
<PackageReference Include="BenchmarkDotNet" Version="0.11.1" />
<PackageReference Include="MessagePack" Version="1.7.3.4" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.1" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\msgpack.spec\msgpack.spec.csproj" />
Expand Down
5 changes: 0 additions & 5 deletions global.json

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/.travis.sdk1.txt

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/.travis.sdk2.txt

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/set-version.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions src/msgpack.spec/DataCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ public static class DataCodes

public const byte FixMapMin = 0x80;
public const byte FixMapMax = 0x8f;
public const byte FixMapMaxLength = FixMapMax - FixMapMin;

public const byte FixArrayMin = 0x90;
public const byte FixArrayMax = 0x9f;
public const byte FixArrayMaxLength = FixArrayMax - FixArrayMin;

public const byte FixStringMin = 0xa0;
public const byte FixStringMax = 0xbf;
public const byte FixStringMaxLength = FixStringMax - FixStringMin;

public const byte Nil = 0xc0;

Expand Down
44 changes: 44 additions & 0 deletions src/msgpack.spec/DataLengths.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
namespace ProGaudi.MsgPack
{
public static class DataLengths
{
public const int FixArrayHeader = 1;
public const int Array16Header = 3;
public const int Array32Header = 5;
public const int Binary8Header = 2;
public const int Binary16Header = 3;
public const int Binary32Header = 5;
public const int Boolean = 1;
public const int Float64 = 9;
public const int Extension8Header = 3;
public const int Extension16Header = 4;
public const int Extension32Header = 6;
public const int FixExtensionHeader = 2;
public const int TimeStamp32 = 6;
public const int TimeStamp64 = 10;
public const int TimeStamp96 = 15;
public const int Float32 = 5;
public const int Int16 = 3;
public const int Int32 = 5;
public const int Int64 = 9;
public const int Int8 = 2;
public const int FixMapHeader = 1;
public const int Map16Header = 3;
public const int Map32Header = 5;
public const int NegativeFixInt = 1;
public const int Nil = 1;
public const int PositiveFixInt = 1;
public const int FixStringHeader = 1;
public const int String8Header = 2;
public const int String16Header = 3;
public const int String32Header = 5;
public const int UInt8 = 2;
public const int UInt16 = 3;
public const int UInt32 = 5;
public const int UInt64 = 9;

public const byte FixMapMaxLength = DataCodes.FixMapMax - DataCodes.FixMapMin;
public const byte FixArrayMaxLength = DataCodes.FixArrayMax - DataCodes.FixArrayMin;
public const byte FixStringMaxLength = DataCodes.FixStringMax - DataCodes.FixStringMin;
}
}
Loading