forked from jmecosta/sonar-fsharp-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
124 lines (96 loc) · 3.62 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
113
114
115
116
117
118
119
120
121
122
123
124
# appveyor.yml reference see https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 3.2.{build}
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2019
# build cache to preserve files/folders between builds
cache:
- C:\Users\appveyor\.m2
# scripts that run after cloning repository
install:
- cmd: SET JDK_HOME=C:\Program Files\Java\jdk11
- cmd: SET JAVA_HOME=C:\Program Files\Java\jdk11
- cmd: mvn versions:set -DnewVersion=%APPVEYOR_BUILD_VERSION%
# .NET Core project files patching
dotnet_csproj:
patch: true
file: '**\*.csproj;**\*.props;**\*.fsproj;**\*.xml'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
#---------------------------------#
# build configuration #
#---------------------------------#
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# Build settings, not to be confused with "before_build" and "after_build".
# "project" is relative to the original build directory and not influenced by directory changes in "before_build".
#build:
# scripts to run before build
#before_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
- mvn -Dconfiguration=%CONFIGURATION% clean install
- mvn -Dconfiguration=%CONFIGURATION% -P sonar -Dsonar.branch.name=%APPVEYOR_REPO_BRANCH% sonar:sonar
# scripts to run after build (working directory and environment changes are persisted from the previous steps)
#after_build:
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
#before_package:
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run tests against only selected assemblies and/or categories
#test:
# scripts to run before tests (working directory and environment changes are persisted from the previous steps such as "before_build")
#before_test:
# to run your custom scripts instead of automatic tests
#test_script:
# scripts to run after tests
after_test:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$wc = New-Object 'System.Net.WebClient'
$files = Get-ChildItem -Recurse .\TEST-*.xml
foreach ($f in $files) {
$wc.UploadFile($url, (Resolve-Path $f))
}
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: 'sonar-communityfsharp-plugin/target/*.jar'
name: sonar-communityfsharp-plugin
- path: 'FsSonarRunner/FsSonarRunnerCore/bin/Release/*.nupkg'
name: FsSonarRunnerCore
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
provider: NuGet
on:
branch: master
api_key:
secure: K543ay4YetoE5FnmT4u5qd7J/5qi/C7THCrXY3A5BkKvVgjRSO96Kz6EsgB0Rui3
skip_symbols: true
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
#on_success:
# on build failure
#on_failure:
# after build failure or success
#on_finish:
#---------------------------------#
# notifications #
#---------------------------------#