Skip to content

Commit

Permalink
build: use local tools
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Nov 20, 2019
1 parent a29a33c commit b696b40
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-format": {
"version": "4.0.40103",
"commands": [
"dotnet-format"
]
},
"minicover": {
"version": "3.0.0",
"commands": [
"minicover"
]
}
}
}
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ before_install:
- sudo apt-get install -y powershell

install:
- dotnet tool install -g dotnet-format --version 4.0.40103 --add-source https://dotnet.myget.org/F/format/api/v3/index.json
- pwsh ./ci/Install-Minikube.ps1 -MinikubeVersion v1.2.0 -KubernetesVersion v1.16.0
- pwsh -c 'Install-Module -Force -Scope CurrentUser PSScriptAnalyzer'

script:
- ~/.dotnet/tools/dotnet-format
- dotnet dotnet-format
- pwsh -c 'Invoke-ScriptAnalyzer -EnableExit -Path . -Recurse -Settings PSScriptAnalyzerSettings.psd1 | Format-List -Property RuleName,Message,ScriptPath,Line,Column'
- pwsh ./build.ps1
- pwsh ./ci/Invoke-Tests.ps1
Expand Down
1 change: 0 additions & 1 deletion src/PSKubectl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<!-- <PackageReference Include="Serilog.Extensions.Logging.File" Version="1.1.0" /> -->
<DotNetCliToolReference Include="MiniCover" Version="3.0.0" />
</ItemGroup>
</Project>

0 comments on commit b696b40

Please sign in to comment.