@@ -0,0 +1,25 @@ | |||||
name: .NET Core | |||||
on: [push] | |||||
jobs: | |||||
build: | |||||
runs-on: ubuntu-latest | |||||
steps: | |||||
- uses: actions/checkout@master | |||||
- name: Setup .NET Core | |||||
uses: actions/setup-dotnet@master | |||||
with: | |||||
dotnet-version: 3.1.101 | |||||
- name: dotnet info | |||||
run: dotnet --info | |||||
- name: dotnet restore | |||||
run: dotnet restore ./src/JTActiveSafety.sln | |||||
- name: dotnet JTActiveSafety.Protocol build | |||||
run: dotnet build ./src/JTActiveSafety.Protocol.Test/JTActiveSafety.Protocol.Test.csproj | |||||
- name: dotnet JT808.Protocol.Extensions.JTActiveSafety build | |||||
run: dotnet test ./src/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj | |||||
- name: dotnet JT808.Protocol.Extensions.JTActiveSafety test | |||||
run: dotnet test ./src/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj |
@@ -1,17 +0,0 @@ | |||||
language: csharp | |||||
solution: JTActiveSafety.sln | |||||
dotnet: 3.1.100 | |||||
os: linux | |||||
mono: none | |||||
dist: trusty2 | |||||
script: | |||||
- dotnet restore src/JTActiveSafety.sln | |||||
- dotnet build src/JTActiveSafety.Protocol.Test/JTActiveSafety.Protocol.Test.csproj | |||||
- dotnet test src/JTActiveSafety.Protocol.Test/JTActiveSafety.Protocol.Test.csproj | |||||
- dotnet build src/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj | |||||
- dotnet test src/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj | |||||
after_success: | |||||
- echo successful build! | |||||
branches: | |||||
only: | |||||
- master |
@@ -5,7 +5,7 @@ JTActiveSafety协议、道路运输车辆主动安全智能防控系统-主动 | |||||
1. 设备终端到平台的通信也就是JT808 | 1. 设备终端到平台的通信也就是JT808 | ||||
2. 设备终端上传的附件数据也就是附件服务器 | 2. 设备终端上传的附件数据也就是附件服务器 | ||||
[](https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE)[](https://travis-ci.org/SmallChi/JTActiveSafety) | |||||
[](https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE)[]() | |||||
## 基于JT808扩展的JTActiveSafety消息协议 | ## 基于JT808扩展的JTActiveSafety消息协议 | ||||
@@ -44,4 +44,4 @@ JTActiveSafety协议、道路运输车辆主动安全智能防控系统-主动 | |||||
IServiceCollection serviceDescriptors1 = new ServiceCollection(); | IServiceCollection serviceDescriptors1 = new ServiceCollection(); | ||||
serviceDescriptors1.AddJT808Configure() | serviceDescriptors1.AddJT808Configure() | ||||
.AddJTActiveSafetyConfigure(); | .AddJTActiveSafetyConfigure(); | ||||
``` | |||||
``` |
@@ -7,10 +7,13 @@ | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> | |||||
<PackageReference Include="xunit" Version="2.4.0" /> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.1" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1"> | |||||
<PrivateAssets>all</PrivateAssets> | |||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |||||
</PackageReference> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
@@ -15,7 +15,7 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JTActiveSafety/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.0</Version> | |||||
<Version>1.0.1</Version> | |||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -27,7 +27,7 @@ | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="JT808" Version="2.2.5" /> | |||||
<PackageReference Include="JT808" Version="2.2.6" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
@@ -1,8 +1,8 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netstandard2.0</TargetFramework> | |||||
<LangVersion>7.3</LangVersion> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | |||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
<PackageId>JTActiveSafety</PackageId> | <PackageId>JTActiveSafety</PackageId> | ||||
@@ -18,7 +18,7 @@ | |||||
<Version>1.0.0</Version> | <Version>1.0.0</Version> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | |||||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | |||||
<PackageReference Include="System.Memory" Version="4.5.3" /> | <PackageReference Include="System.Memory" Version="4.5.3" /> | ||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||