-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
76 lines (59 loc) · 1.81 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
#---------------------------------#
# general configuration #
#---------------------------------#
version: 1.4.{build}
branches:
only:
- master
environment:
COVERALLS_REPO_TOKEN:
secure: GZLA0EL0qjA//e/pc8VZ8cc6zOPMBImlJpXc33Fr4G2LgvtmqTEYn3lKMh5ZKE7N
#---------------------------------#
# environment configuration #
#---------------------------------#
image: Visual Studio 2017
#---------------------------------#
# build configuration #
#---------------------------------#
platform: Any CPU
configuration:
- Debug
- Release
build:
project: NickBuhro.Translit.sln
verbosity: minimal
before_build:
- nuget restore
- ps: |
$xmlPath = "$env:appveyor_build_folder\NickBuhro.Translit\NickBuhro.Translit.csproj"
$xml = [xml](get-content $xmlPath)
$propertyGroup = $xml.Project.PropertyGroup[0]
$propertyGroup.Version = $env:appveyor_build_version
$xml.Save($xmlPath)
#---------------------------------#
# tests configuration #
#---------------------------------#
after_test:
- if "%CONFIGURATION%"=="Debug" (coverage.bat)
- if "%CONFIGURATION%"=="Debug" (appveyor PushArtifact Summary.mht)
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: NickBuhro.Translit\bin\$(configuration)
type: zip
- path: NickBuhro.Translit\bin\$(configuration)\*.nupkg
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
provider: NuGet
api_key:
secure: vDxpqHHdBtz+P6Nau7V8tLYhtc+5tE6qfEoQI8Vrse11k0vWCrAKY1vUvMoLFURB
skip_symbols: false
artifact: /.*\.nupkg/
on:
branch: master
configuration: Release
appveyor_repo_tag: true
appveyor_repo_tag_name: publish