-
Notifications
You must be signed in to change notification settings - Fork 81
/
appveyor.yml
59 lines (51 loc) · 2.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
image: Visual Studio 2017
install:
- choco install gitversion.portable -pre -y
before_build:
- dotnet --version
- dotnet restore src/core/core.sln
build_script: |
gitversion /l console /output buildserver /updateassemblyinfo
dotnet build -c Release src/core/core.sln
dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets -p:PackageVersion=%GitVersion_NugetVersion% src\core\BrightstarDB.Core
dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets -p:PackageVersion=%GitVersion_NugetVersion% src\core\BrightstarDB.CodeGeneration
dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets -p:PackageVersion=%GitVersion_NugetVersion% src\core\BrightstarDB.CodeGeneration.Console
dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets src\core\BrightstarDB\BrightstarDB.csproj -p:NuspecFile=..\..\..\installer\nuget\BrightstarDB.nuspec -p:NuspecBasePath=. -p:NuspecProperties="version=%GitVersion_NugetVersion%" --no-build
before_test:
- ps: |
pushd .\src\core\BrightstarDB.InternalTests
nuget install Appveyor.TestLogger
popd
pushd .\src\core\BrightstarDB.CodeGeneration.Tests
nuget install Appveyor.TestLogger
popd
pushd .\src\core\BrightstarDB.EntityFramework.Tests
nuget install Appveyor.TestLogger
popd
pushd .\src\core\BrightstarDB.Tests
nuget install Appveyor.TestLogger
popd
pushd .\src\core\BrightstarDB.Server.Modules.Tests
nuget install Appveyor.TestLogger
popd
test_script:
- dotnet test -c Release --test-adapter-path:. --logger:Appveyor src\core\BrightstarDB.InternalTests\BrightstarDB.InternalTests.csproj
- dotnet test -c Release --test-adapter-path:. --logger:Appveyor src\core\BrightstarDB.Tests\BrightstarDB.Tests.csproj
- dotnet test -c Release --test-adapter-path:. --logger:Appveyor src\core\BrightstarDB.Server.Modules.Tests\BrightstarDB.Server.Modules.Tests.csproj
- dotnet test -c Release --test-adapter-path:. --logger:Appveyor src\core\BrightstarDB.EntityFramework.Tests\BrightstarDB.EntityFramework.Tests.csproj
- dotnet test -c Release --test-adapter-path:. --logger:Appveyor src\core\BrightstarDB.CodeGeneration.Tests\BrightstarDB.CodeGeneration.Tests.csproj
deploy:
- provider: GitHub
description: 'BrightstarDB $(GitVersion_SemVer)'
auth_token:
secure: YVdYJs6Uiw69xZTcA1TNVU1YnmbCMXh3MjNRqDno9y8JnzNF5oojc+tJIrj+MaJX
on:
appveyor_repo_tag: true
- provider: NuGet
api_key:
secure: rrONi037gQf8j+mGvpP1DPwcKPqg77dvqBYJ7UNvaMcBfNOlBJRUE58TZFjYWS0P
on:
appveyor_repo_tag: true
artifact: /.*\.nupkg/
artifacts:
- path: 'nugets\*.nupkg'