forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
72 lines (60 loc) · 2.96 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
image: Visual Studio 2017
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 Libraries/dotNetRDF.Query.Spin
- dotnet build Testing/Unittest
- 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
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet xunit -configuration %CONFIGURATION% -trait "Category=fulltext" | Out-File fulltext.log
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd ..\..\
after_test:
- 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: URqGK+AnkTfy7Q36+5K2kNv2qpaI4ZOzjnRGry8tMiOMCtuqrwJWW/jSaEGhchuo
on:
appveyor_repo_tag: true
artifact: /((?!Spin).)*.nupkg/
on_finish:
- ps: |
$ws = (New-Object 'System.Net.WebClient')
if((Test-Path .\test.log)) {
Push-AppveyorArtifact .\test.log
}
if((Test-Path .\fulltext.log)) {
Push-AppveyorArtifact .\fulltext.log
}
artifacts:
- path: 'nugets\*.nupkg'
- path: 'Build\shfb\Help\dotNetRDFApi.chm'
- path: 'Build\shfb\Help'