-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
40 lines (29 loc) · 1.55 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
39
40
version: 1.0.6.{build}
configuration:
- Debug
- Release
platform: Any CPU
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
install:
- ps: Start-FileDownload 'https://download.microsoft.com/download/0/F/D/0FD852A4-7EA1-4E2A-983A-0484AC19B92C/dotnet-sdk-2.0.0-win-gs-x64.exe'
- cmd: dotnet-sdk-2.0.0-win-gs-x64.exe /quiet
- ps: $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true"
environment:
PATH: $(PATH);$(PROGRAMFILES)\dotnet\
before_build:
- dotnet restore .\src\QueryInterceptor.Core\QueryInterceptor.Core.csproj
- dotnet restore .\src\QueryInterceptor.EntityFramework\QueryInterceptor.EntityFramework.csproj
- dotnet restore .\test\QueryInterceptor.Core.UnitTests\QueryInterceptor.Core.UnitTests.csproj
build_script:
- dotnet build .\src\QueryInterceptor.Core\QueryInterceptor.Core.csproj -c %CONFIGURATION%
- dotnet build .\src\QueryInterceptor.EntityFramework\QueryInterceptor.EntityFramework.csproj -c %CONFIGURATION%
- dotnet build .\test\QueryInterceptor.Core.UnitTests\QueryInterceptor.Core.UnitTests.csproj -c %CONFIGURATION%
- dotnet build .\test\QueryInterceptor.EntityFrameworkCore.UnitTests\QueryInterceptor.EntityFrameworkCore.UnitTests.csproj -c %CONFIGURATION%
test_script:
- dotnet test --no-build .\test\QueryInterceptor.Core.UnitTests\QueryInterceptor.Core.UnitTests.csproj -c %CONFIGURATION%
- dotnet test --no-build .\test\QueryInterceptor.EntityFrameworkCore.UnitTests\QueryInterceptor.EntityFrameworkCore.UnitTests.csproj -c %CONFIGURATION%
#artifacts:
#- path: artifacts\**\*.*
#cache:
#- '%USERPROFILE%\.nuget\packages'