forked from Nick-Lucas/EntryPoint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
32 lines (24 loc) · 863 Bytes
/
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
version: '{build}'
clone_depth: 50
cache:
- '%LOCALAPPDATA%\Microsoft\dotnet -> appveyor.yml'
- '%USERPROFILE%\.nuget\packages -> appveyor.yml, **\*.csproj, Nuget.Config'
before_build:
# Install dotnet cli
- appveyor DownloadFile https://raw.githubusercontent.com/dotnet/cli/rel/1.0.1/scripts/obtain/dotnet-install.ps1
- powershell -File dotnet-install.ps1
- set PATH=%PATH%;%LOCALAPPDATA%\Microsoft\dotnet
- dotnet --version
# Restore packages
- dotnet restore .\src\EntryPoint
- dotnet restore .\test\EntryPointTests
build_script:
- dotnet build .\src\EntryPoint
- dotnet build .\test\EntryPointTests
test_script:
# .NET Core
- dotnet test .\test\EntryPointTests\EntryPointTests.csproj
after_test:
- dotnet pack .\src\EntryPoint --configuration=Release --output=".\Nuget"
artifacts:
- path: .\src\EntryPoint\Nuget\*.nupkg