forked from CollaboratingPlatypus/PetaPoco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (46 loc) · 2.6 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
version: 5.1.{build}
install:
- ps: "Set-AppveyorBuildVariable 'APPVEYOR_BUILD_INFO_VERSION' $env:APPVEYOR_BUILD_VERSION"
- ps: "if ($env:APPVEYOR_REPO_BRANCH -ieq \"development\")\n{\n Set-AppveyorBuildVariable 'APPVEYOR_BUILD_INFO_VERSION' $($env:APPVEYOR_BUILD_INFO_VERSION + '-beta') \n}"
branches:
only:
- master
- development
skip_tags: true
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '$(APPVEYOR_BUILD_INFO_VERSION)'
#cache: src\packages
nuget:
project_feed: true
disable_publish_on_pr: true
before_build:
- nuget restore -DisableParallelProcessing
- cmd: msbuild PetaPoco.Cs.Joiner\PetaPoco.Cs.Joiner.csproj /t:rebuild /tv:14.0 /p:Configuration=Release;TargetFrameworkVersion=v4.6
- cmd: Tools\PetaPoco.Cs.Joiner.exe PetaPoco\
build_script:
- cmd: msbuild PetaPoco.sln /t:rebuild /tv:14.0 /p:Configuration=Release;TargetFrameworkVersion=v4.6
after_build:
- cmd: msbuild PetaPoco/PetaPoco.csproj /t:rebuild /tv:14.0 /p:Configuration=Release;TargetFrameworkVersion=v4.6;DefineConstants=SKIP_POST_BUILD
- cmd: msbuild PetaPoco/PetaPoco.csproj /t:rebuild /tv:14.0 /p:Configuration=Release;TargetFrameworkVersion=v4.5;DefineConstants=SKIP_POST_BUILD
- cmd: msbuild PetaPoco/PetaPoco.csproj /t:rebuild /tv:14.0 /p:Configuration=Release;TargetFrameworkVersion=v4.0;DefineConstants=SKIP_POST_BUILD
- ps: ".\\Tools\\NuGet.exe pack .\\Nuget\\PetaPoco.nuspec -BasePath .\\Output\\ -OutputDirectory .\\PetaPacked\\ -Exclude *.dll -Version $env:APPVEYOR_BUILD_INFO_VERSION -Verbosity detailed"
- ps: ".\\Tools\\NuGet.exe pack .\\Nuget\\PetaPoco.Core.nuspec -BasePath .\\Output\\ -OutputDirectory .\\PetaPacked\\ -Exclude *.dll -Version $env:APPVEYOR_BUILD_INFO_VERSION -Verbosity detailed"
- ps: ".\\Tools\\NuGet.exe pack .\\Nuget\\PetaPoco.Compiled.nuspec -BasePath .\\PetaPoco\\bin\\Release\\ -OutputDirectory .\\PetaPacked\\ -Version $env:APPVEYOR_BUILD_INFO_VERSION -Verbosity detailed"
- cmd: msbuild PetaPoco.Tests.Integration.SingleFile/PetaPoco.Tests.Integration.SingleFile.csproj /t:rebuild /tv:4.0 /p:Configuration=Release;TargetFrameworkVersion=v4.0
#test_script:
#- vstest.console /logger:Appveyor /TestAdapterPath:"%APPVEYOR_BUILD_FOLDER%\src\packages\Fixie.1.0.0.3\lib\net45" "%APPVEYOR_BUILD_FOLDER%\src\Portable.MediatR.Tests\bin\Release\Portable.MediatR.Tests.dll"
test: off
artifacts:
- path: PetaPacked\**\*.nupkg
deploy:
- provider: NuGet
api_key:
secure: YPGdPLnY9FEYDZz3zZFV/+BKreynP4W2/DoURr0XlBjS8eLkkSypvEkI0BQSfRur
artifact: /.*\.nupkg/
on:
branch: /master|Development/