From b696b404d3498b99bcbdba3fae269195928eca56 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Wed, 20 Nov 2019 22:31:14 +0100 Subject: [PATCH] build: use local tools --- .config/dotnet-tools.json | 18 ++++++++++++++++++ .travis.yml | 3 +-- src/PSKubectl.csproj | 1 - 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .config/dotnet-tools.json diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..2411106 --- /dev/null +++ b/.config/dotnet-tools.json @@ -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" + ] + } + } +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index c10d6ba..b024934 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/src/PSKubectl.csproj b/src/PSKubectl.csproj index 8becb44..da42b6b 100644 --- a/src/PSKubectl.csproj +++ b/src/PSKubectl.csproj @@ -13,6 +13,5 @@ All -