Skip to content

Commit

Permalink
only docs
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Sep 9, 2020
1 parent 56f514d commit f5353b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- stage: "Generate Documentation"
if: branch = master OR branch = docs
install:
- dotnet restore
- dotnet restore src/
- nuget install docfx.console -Version 2.51.0
script:
- ./docfx.console.2.51.0/tools/docfx.exe metadata docfx_project/docfx.json
Expand All @@ -27,13 +27,13 @@ jobs:
branch: master
- stage: "Run Tests"
if: branch != master AND branch != docs
install: dotnet restore
install: dotnet restore src/
script: dotnet test src/DotNetStac.Test/DotNetStac.Test.csproj --verbosity detailed
- stage: "Publish to NuGet"
if: branch = master
install: dotnet restore
script:
- dotnet build
- dotnet publish -c release
- dotnet pack -c release --include-symbols -o publish
- dotnet build src/
- dotnet publish src/ -c release -f netstandard2.0
- dotnet pack src/ -c release --include-symbols -o publish
- dotnet nuget push publish/*.nupkg --skip-duplicate -k $NUGET_TOKEN -s https://api.nuget.org/v3/index.json
1 change: 1 addition & 0 deletions src/DotNetStac.Test/DotNetStac.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0"/>
Expand Down
4 changes: 1 addition & 3 deletions src/DotNetStac/DotNetStac.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<_ExtraTargetFrameworks Condition="'$(OS)' == 'Windows_NT' or '$(MSBuildRuntimeType)' == 'Mono'">net472</_ExtraTargetFrameworks>
<TargetFrameworks>netstandard2.0;$(RoslynPortableTargetFrameworks);$(_ExtraTargetFrameworks)</TargetFrameworks>
<RuntimeIdentifiers>win;linux</RuntimeIdentifiers>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Title>DotNetStac</Title>
<Description>Terradue .Net library for working with any SpatioTemporal Asset Catalog</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand Down

0 comments on commit f5353b7

Please sign in to comment.