forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
73 lines (61 loc) · 3.13 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
60
61
62
63
64
65
66
67
68
69
70
71
72
image: Visual Studio 2017
branches:
except:
- maintenance/1.x
environment:
SHFBROOT: C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\
SandCastleZipFile: SHFBInstaller.zip
SandCastleUri: https://github.com/EWSoftware/SHFB/releases/download/v2017.1.28.0/SHFBInstaller_v20171.28.0.zip
install:
- choco install gitversion.portable -pre -y
- ps: Start-FileDownload $env:SandCastleUri -FileName $env:SandCastleZipFile
- cmd: 7z x SHFBInstaller.zip -y
- ps: msiexec /i InstallResources\SandcastleHelpFileBuilder.msi /quiet /qn /norestart /log install.log
before_build:
- dotnet restore dotNetRDF.sln
- ps: gitversion /l console /output buildserver /updateassemblyinfo
configuration: Release
build_script:
- dotnet build -c Release dotNetRDF.sln
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF /p:Version=%GitVersion_NuGetVersion%
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF.Data.DataTables /p:Version=%GitVersion_NuGetVersion%
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF.Data.Virtuoso /p:Version=%GitVersion_NuGetVersion%
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF.Query.FullText /p:Version=%GitVersion_NuGetVersion%
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF.Query.Spin /p:Version=%GitVersion_NuGetVersion%
- dotnet pack -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets Libraries/dotNetRDF.Web /p:Version=%GitVersion_NuGetVersion%
test_script:
- ps: |
cd Testing\unittest
dotnet xunit -configuration %CONFIGURATION% -notrait "Category=explicit" | Out-File test.log
Push-AppveyorArtifact test.log
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet xunit -configuration %CONFIGURATION% -trait "Category=fulltext" | Out-File fulltext.log
Push-AppveyorArtifact fulltext.log
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd ..\dotNetRdf.MockServerTests
dotnet xunit -configuration %CONFIGURATION% -notrait "Category=explicit" | Out-File mockservertests.log
Push-AppveyorArtifact mockservertests.log
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd ..\..\
before_deploy:
- cmd: msbuild Build\shfb\dotnetrdf.shfbproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION% /p:HelpFileVersion=%GitVersion_NuGetVersion%
deploy:
- provider: GitHub
description: 'dotNetRDF $(GitVersion_SemVer)'
auth_token:
secure: j3GoyDavErTD91EcSTfNBbQyTc7tqpp+klmmz85xC4fjbE8Gl2brFjr8t3/Zzwmk
on:
appveyor_repo_tag: true
artifact: Build\shfb\Help.zip, Build\shfb\Help\dotNetRDFApi.chm, /.*\.nupkg/
- provider: NuGet
api_key:
secure: xkVJcckbSBSStK7/jzgv6AUkI/QS1oeJNx6KUcHxoI9XrHI/m7VjFAslEGm9VEOo
on:
appveyor_repo_tag: true
artifact: /((?!Spin).)*.nupkg/
artifacts:
- path: 'nugets\*.nupkg'
- path: 'Build\shfb\Help\dotNetRDFApi.chm'
- path: 'Build\shfb\Help'
- path: 'Testing\unittest\*.log'
- path: 'Testing\dotNetRdf.MockServerTests\*.log'