-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyorSynkerRelease.yml
108 lines (107 loc) · 3.71 KB
/
appveyorSynkerRelease.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
version: '1.0.{build}'
image: Visual Studio 2017
configuration: Release
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
- cmd: pwd
clone_depth: 10
# environment variables
environment:
nodejs_version: '8'
ASPNETCORE_ENVIRONMENT: 'Production'
skip_non_tags: true
matrix:
fast_finish: true
install:
- choco install googlechrome -y --ignore-checksums
- ps: Install-Product node $Env:nodejs_version
before_build:
- cmd: dotnet --version
- cmd: dotnet restore ./WebClient/hfa.WebClient.csproj --verbosity m
- cmd: dotnet restore ./WebApi/hfa.WebApi.csproj --verbosity m
- cmd: dotnet restore ./SyncLibrary/hfa.Synker.batch.csproj --verbosity m
- cmd: dotnet restore ./Brokers/hfa.Notification.Brokers/hfa.Notification.Brokers.csproj --verbosity m
build_script:
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 ./WebClient/hfa.WebClient.csproj --verbosity m -o artifactsWebClient
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 ./WebApi/hfa.WebApi.csproj --verbosity m -o artifactsWebApi
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 ./SyncLibrary/hfa.Synker.batch.csproj --verbosity m -o artifactsBatch
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 ./Brokers/hfa.Notification.Brokers/hfa.Notification.Brokers.csproj --verbosity m -o artifactsBroker
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
artifacts:
- path: .\WebClient\artifactsWebClient
name: WebClient
type: WebDeployPackage
- path: .\WebApi\artifactsWebApi
name: WebApi
type: WebDeployPackage
- path: .\SyncLibrary\artifactsBatch
name: batch
type: WebDeployPackage
- path: .\Brokers\hfa.Notification.Brokers\artifactsBroker
name: broker
type: WebDeployPackage
test_script:
- cmd: cd ./hfa.tvhLibrary.test/ && dotnet restore --verbosity m && dotnet xunit -appveyor -notrait "Category=Integration" && cd ..
- cmd: cd ./hfa.synker.batch.test/ && dotnet restore --verbosity m && dotnet xunit -appveyor -notrait "Category=Integration" && cd ..
- cmd: cd ./WebClient && npm run test:ci && cd ..
deploy:
- provider: GitHub
force_update: true
tag: $(APPVEYOR_REPO_TAG_NAME)
release: synkerclient-$(APPVEYOR_REPO_TAG_NAME)
description: 'Synker Api'
auth_token:
secure: fxsWwiwYRs4GHT6/jIwcDWUnRXNkbo7njWqp/9mT+5x86SxWqvSgJhbYW0KmtHer
artifact: WebClient
draft: false
prerelease: false
on:
appveyor_repo_tag: true
branch: master
- provider: GitHub
force_update: true
tag: $(APPVEYOR_REPO_TAG_NAME)
release: synkerapi-$(APPVEYOR_REPO_TAG_NAME)
description: 'Synker Client'
auth_token:
secure: fxsWwiwYRs4GHT6/jIwcDWUnRXNkbo7njWqp/9mT+5x86SxWqvSgJhbYW0KmtHer
artifact: WebApi
draft: false
prerelease: false
on:
appveyor_repo_tag: true
branch: master
- provider: GitHub
force_update: true
tag: $(APPVEYOR_REPO_TAG_NAME)
release: synkerbatch-$(APPVEYOR_REPO_TAG_NAME)
description: 'Synker Batch'
auth_token:
secure: fxsWwiwYRs4GHT6/jIwcDWUnRXNkbo7njWqp/9mT+5x86SxWqvSgJhbYW0KmtHer
artifact: batch
draft: false
prerelease: false
on:
appveyor_repo_tag: true
branch: master
- provider: GitHub
force_update: true
tag: $(APPVEYOR_REPO_TAG_NAME)
release: synkerbroker-$(APPVEYOR_REPO_TAG_NAME)
description: 'Synker Broker'
auth_token:
secure: fxsWwiwYRs4GHT6/jIwcDWUnRXNkbo7njWqp/9mT+5x86SxWqvSgJhbYW0KmtHer
artifact: broker
draft: false
prerelease: false
on:
appveyor_repo_tag: true
branch: master