This repository was archived by the owner on Apr 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
100 lines (81 loc) · 3.17 KB
/
appveyor.yml
File metadata and controls
100 lines (81 loc) · 3.17 KB
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
version: 3.4-dev.{build}
# branches:
# only:
# - dev
# - master
image: Visual Studio 2017
environment:
my_secret:
secure: Zw+6liPcT9Ar/HhRas4Hwg==
keystore_pw:
secure: 1sehi0qb9TlwFvhfNXKeSQ==
keystore_alias:
secure: v/5FBX9yuKAKY5SWsdik9q0JA8ukHdKiApz8NzewQLpJKtCcCjmblZisXVv7eAb+63pcB4voM2FwMQn0RbJzzA==
sonarCloud_token:
secure: nacheBlvzjVVKsTi2hzxvAc5uTpcWVT6Ephb2qNA1+ro5xfMllFLVxDV1SP87yZH
init:
- appveyor version
- ps: '[System.IO.File]::AppendAllText("C:\Windows\System32\drivers\etc\hosts", "`n93.184.221.200`tapi.nuget.org")'
install:
- cmd: nuget install secure-file -ExcludeVersion
- cmd: choco install resharper-clt
- cmd: secure-file\tools\secure-file -decrypt C:\projects\app-cross-platform-j312l\keystore_file.jks.enc -secret %my_secret%
# Retain the NuGet package cache between builds.
cache:
# - C:\Users\appveyor\AppData\Local\NuGet\Cache
# - '%USERPROFILE%\.nuget\packages-> **\packages.config'
# try
- C:\projects\app-cross-platform-j312l\packages
#shallow_clone: true
configuration: AppStore
platform: Any CPU
# restore packages
before_build:
- cmd: nuget restore
build:
verbosity: minimal
#after_build:
#- cmd: InspectCode.exe -o=resharper-clt-output.xml C:\projects\app-cross-platform-j312l\Integreat.sln
#- ps: $result = [xml](Get-Content .\resharper-clt-output.xml)
#- ps: $result.Report.Issues.ChildNodes | ForEach-Object {$project = $_.Name; $_.ChildNodes | ForEach-Object {Add-AppveyorCompilationMessage -Message $_.Message -Line $_.Line -FileName $_.File -ProjectName $project}}
build_script:
- choco install "msbuild-sonarqube-runner" -y
- SonarScanner.MSBuild.exe begin /k:"Integreat-Xamarin-App" /o:"thimmy687-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="%sonarCloud_token%"
- msbuild "Integreat.sln"
- SonarScanner.MSBuild.exe end /d:sonar.login="%sonarCloud_token%"
# - cmd: msbuild "/t:SignAndroidPackage" "/p:Configuration=Release CPU" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=%keystore_alias%" "/p:AndroidSigningKeyPass=%keystore_pw%" "/p:AndroidSigningKeyStore=keystore-integreat.jks" "/p:AndroidSigningStorePass=refugee" "C:\projects\app-cross-platform-j312l\Integreat\Integreat.Droid\Integreat.Droid.csproj"
#artifacts:
# - path: Integreat\Integreat.Droid\bin\Release\tuerantuer.app.integreat-Signed.apk
notifications:
- provider: GitHubPullRequest
auth_token:
secure: of+mRRMFr/QRHfemjc4rGunv42mJVwYjqngVKHU2D4SyqyEopMJJnSJfKkpWBozZ
on_build_success: false
on_build_failure: true
on_build_status_changed: false
# - provider: Slack
# incoming_webhook:
# secure: d+JkCCqHIIMb/oo76RZvo3j5UOz1w0YgcSp8CpUjR/9tiiHHhcMRkGnT4Y4aOOzpGmFEZ0DwNhgVchiV1/yaUgKVsEjqDRCnOidiHBKtHkw=
# channel: '# app-xamarin'
# on_build_success: false
# on_build_failure: true
# on_build_status_changed: false
#for:
# configuration for "master" branch
# build in Release mode and deploy to Github as new release
#-
# branches:
# only:
# - master
#configuration: Release
#deploy:
#provider: ToDo
# configuration for "dev" branch
# build in Release mode and deploy to Github as Pre-Release Tag
#-
# branches:
# only:
# - dev
#configuration: Debug
#deploy:
#provider: ToDo