forked from techyian/MMALSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
112 lines (87 loc) · 3.42 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#Dev
-
version: '0.7.{build}'
# prevent the double build when a branch has an active PR
skip_branch_with_pr: true
os: Visual Studio 2017
artifacts:
- path: '**\MMALSharp*.nupkg'
before_build:
- dotnet --info
- dotnet restore src\MMALSharp\MMALSharp.csproj
- dotnet restore src\MMALSharp.Common\MMALSharp.Common.csproj
- dotnet restore src\MMALSharp.FFmpeg\MMALSharp.FFmpeg.csproj
- dotnet restore src\MMALSharp.Processing\MMALSharp.Processing.csproj
- dotnet restore tests\MMALSharp.Tests\MMALSharp.Tests.csproj
test: off
# branches to build
branches:
only:
- dev
configuration: Debug
build_script:
- dotnet build "src\MMALSharp" -c %CONFIGURATION% --version-suffix %APPVEYOR_BUILD_NUMBER%
after_build:
- dotnet pack .\src\MMALSharp\MMALSharp.csproj -c %CONFIGURATION% --version-suffix %APPVEYOR_BUILD_NUMBER%
- dotnet pack .\src\MMALSharp.Common\MMALSharp.Common.csproj -c %CONFIGURATION% --version-suffix %APPVEYOR_BUILD_NUMBER%
- dotnet pack .\src\MMALSharp.FFmpeg\MMALSharp.FFmpeg.csproj -c %CONFIGURATION% --version-suffix %APPVEYOR_BUILD_NUMBER%
- dotnet pack .\src\MMALSharp.Processing\MMALSharp.Processing.csproj -c %CONFIGURATION% --version-suffix %APPVEYOR_BUILD_NUMBER%
test_script:
- ps: .\run-sonar.ps1
deploy:
# MyGet Deployment for builds & releases
- provider: NuGet
server: https://www.myget.org/F/mmalsharp/api/v2/package
symbol_server: https://www.myget.org/F/mmalsharp/symbols/api/v2/package
api_key:
secure: xii3+2rue3Dhi6r46YYK4ZkMRBRgoWEkN14JuXY6Eb0VbC61P883hwTR2xZUYY06
artifact: /.*\.nupkg/
on:
branch: dev
#Release
-
version: '0.7.{build}'
# prevent the double build when a branch has an active PR
skip_branch_with_pr: true
os: Visual Studio 2017
artifacts:
- path: '**\MMALSharp*.nupkg'
before_build:
- dotnet --info
- dotnet restore src\MMALSharp\MMALSharp.csproj
- dotnet restore src\MMALSharp.Common\MMALSharp.Common.csproj
- dotnet restore src\MMALSharp.FFmpeg\MMALSharp.FFmpeg.csproj
- dotnet restore src\MMALSharp.Processing\MMALSharp.Processing.csproj
- dotnet restore tests\MMALSharp.Tests\MMALSharp.Tests.csproj
test: off
# branches to build
branches:
only:
- master
configuration: Release
build_script:
- dotnet build "src\MMALSharp" -c %CONFIGURATION%
after_build:
- dotnet pack .\src\MMALSharp\MMALSharp.csproj -c %CONFIGURATION%
- dotnet pack .\src\MMALSharp.Common\MMALSharp.Common.csproj -c %CONFIGURATION%
- dotnet pack .\src\MMALSharp.FFmpeg\MMALSharp.FFmpeg.csproj -c %CONFIGURATION%
- dotnet pack .\src\MMALSharp.Processing\MMALSharp.Processing.csproj -c %CONFIGURATION%
test_script:
- ps: .\run-sonar.ps1
deploy:
# NuGet deployment
- provider: NuGet
server:
api_key:
secure: m3TpIMzCZUs0ag9bsE0pQ0xV4Em1VQxwtMaTFLUxjMYepJAcceW61l9riyo8oBeZ
artifact: /.*\.nupkg/
on:
branch: master
- provider: NuGet
server: https://www.myget.org/F/mmalsharp/api/v2/package
symbol_server: https://www.myget.org/F/mmalsharp/symbols/api/v2/package
api_key:
secure: xii3+2rue3Dhi6r46YYK4ZkMRBRgoWEkN14JuXY6Eb0VbC61P883hwTR2xZUYY06
artifact: /.*\.nupkg/
on:
branch: master