Replace gitversion from Chocolatey to dotnet tool

- Chocolatey is down (again!) and we can't have the builds stopped because of that

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
This commit is contained in:
José Simões 2018-10-29 11:00:31 +00:00
Родитель 3fb8c599f1
Коммит a49f8882ba
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -48,7 +48,8 @@ install:
- bundle config --local path vendor/bundle
- gem install bundler --quiet --no-ri --no-rdoc
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
- choco install gitversion.portable -pre -y
# this needs to be replace with the official version and nuget package as soon as it's released
- dotnet tool install -g --version 4.0.0-pullrequest1422-1625 --add-source https://ci.appveyor.com/nuget/gitversion-8nigugxjftrw GitVersion.CommandLine.DotNetCore.Tool
- ps: .\install-vsix-appveyor.ps1
before_build:
@ -58,7 +59,7 @@ before_build:
nuget restore source\nanoFramework.Windows.Devices.SerialCommunication.sln
C:\ProgramData\chocolatey\lib\GitVersion.Portable\tools\GitVersion.exe /l console /output buildserver /updateAssemblyInfo "source\Windows.Devices.SerialCommunication\Properties\AssemblyInfo.cs"
dotnet-gitversion /l console /output buildserver /updateAssemblyInfo "source\Windows.Devices.SerialCommunication\Properties\AssemblyInfo.cs"
build_script:
- ps: >-
@ -86,8 +87,6 @@ on_failure:
cache:
- source\packages -> **source\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
################################################
# override configuration for specific branches