-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathappveyor.yml
38 lines (29 loc) · 1.15 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '1.0.{build}'
clone_depth: 50
cache:
- '%LOCALAPPDATA%\Microsoft\dotnet -> appveyor.yml'
#- '%USERPROFILE%\.nuget\packages -> appveyor.yml, **\project.json, Nuget.Config'
before_build:
# Install dotnet cli
- appveyor DownloadFile https://raw.githubusercontent.com/dotnet/cli/v1.0.4/scripts/obtain/dotnet-install.ps1
- powershell -File dotnet-install.ps1
- set PATH=%PATH%;%LOCALAPPDATA%\Microsoft\dotnet
- dotnet --version
# Restore packages
- dotnet restore .\UnitConversion\UnitConversion.csproj
- dotnet restore .\UnitConversionTests\UnitConversionTests.csproj
build_script:
- dotnet build .\UnitConversion\UnitConversion.csproj
- dotnet build .\UnitConversionTests\UnitConversionTests.csproj
test_script:
- dotnet test .\UnitConversionTests\UnitConversionTests.csproj
after_test:
- dotnet pack .\UnitConversion\UnitConversion.csproj --configuration=Release --output=".\Nuget" /p:Version=%appveyor_build_version%
artifacts:
- path: .\UnitConversion\Nuget\*.nupkg
deploy:
provider: NuGet
api_key:
secure: SJzK89JAqOBhZu47WJ0/heQXuEoR5P41jG4UWf1Ie9++19bqdTuVsJiSySylRkfy
skip_symbols: false
artifact: /.*\.nupkg/