Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 0e587c4

Browse files
Sergey KanzhelevSergey Kanzhelev
authored andcommitted
enable travis build
1 parent a740b6a commit 0e587c4

5 files changed

Lines changed: 26 additions & 11 deletions

File tree

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: csharp
2+
mono: none
3+
dotnet: 2.0.0
4+
script:
5+
- dotnet restore
6+
- dotnet build
7+
- dotnet test ./test/OpenCensus.Tests/OpenCensus.Tests.csproj

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"command": "dotnet build",
9+
"type": "shell",
10+
"group": "build",
11+
"presentation": {
12+
"reveal": "silent"
13+
},
14+
"problemMatcher": "$msCompile"
15+
}
16+
]
17+
}

src/OpenCensus/OpenCensus.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<VersionPrefix>0.1.0</VersionPrefix>
66
<VersionSuffix>beta1</VersionSuffix>
77
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
8+
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netstandard2.0</TargetFrameworks>
89
<AssemblyName>OpenCensus</AssemblyName>
910
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1011
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>

test/OpenCensus.Tests/OpenCensus.Tests.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@
33
<PropertyGroup>
44
<Description>Unit test project for OpenCensus</Description>
55
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
6+
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netcoreapp2.0</TargetFrameworks>
67
<AssemblyName>OpenCensus.Tests</AssemblyName>
78
<PackageId>OpenCensus.Tests</PackageId>
89
<PackageTags>OpenCensus;Tracing;Management;Monitoring</PackageTags>
910
<PackageProjectUrl>http://opencensus.io</PackageProjectUrl>
1011
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
1112
<RootNamespace>OpenCensus</RootNamespace>
1213
</PropertyGroup>
13-
14-
15-
<ItemGroup>
16-
<!--None Update="xunit.runner.json">
17-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
18-
</None-->
19-
</ItemGroup>
2014

2115
<ItemGroup>
2216
<ProjectReference Include="..\..\src\OpenCensus\OpenCensus.csproj" />

test/OpenCensus.Tests/xunit.runner.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)