forked from CoderLine/alphaTab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
108 lines (97 loc) · 2.96 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
version: 0.9.1.{build}
# branches to build
branches:
only:
- master
- develop
image: Visual Studio 2017
configuration: Release
platform: Any CPU
environment:
nodejs_version: '8'
global:
HAXELIB_ROOT: C:\projects\haxelib
access_token:
secure: ig+MHQrCziKIZzGkDBsOTuusdSATGEXh79QCG8b4guSHAcM0+uYy0zGoVTKG446Q
deployment_token:
secure: F3tqGIN2guX5kU5B6q89HGPDAgI0g//DwtqRQL0oVeaJU6oBkgbQeJfiproA3yFi
skip_commits:
author: AlphaTab Build Agent
install:
#
# Haxe installation
- ps: Set-Service wuauserv -StartupType Manual
# Install the neko chocolatey package (https://chocolatey.org/packages/neko)
- cinst neko --version 2.2.0 -y
# Install the haxe chocolatey package (https://chocolatey.org/packages/haxe)
- cinst haxe --version 3.4.4 -y
- RefreshEnv
# Setup haxelib
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
# Install project dependencies
# `> log.txt || type log.txt` is for muting the output unless there is an error
- haxelib install munit > log.txt || type log.txt && cmd /C exit 1
- haxelib install hamcrest > log.txt || type log.txt && cmd /C exit 1
- haxelib list
#
# Npm/Uglifyjs installation
- npm install -g uglify-js
- RefreshEnv
dotnet_csproj:
patch: true
file: 'Directory.Build.props'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
build:
parallel: true
publish_nuget: false
publish_nuget_symbols: false
verbosity: minimal
before_build:
- nuget restore
test:
assemblies:
only:
- Source\AlphaTab.Test.CSharp\bin\Release\net471\AlphaTab.Test.CSharp.dll
after_test:
- Documentation\generate.bat
- 7z a -r Documentation\documentation.zip Documentation\output\*
artifacts:
# JavaScript Output
- path: Build\JavaScript\*.*
name: JavaScript
# NuGet package output
- path: Source\AlphaTab.CSharp\Bin\$(configuration)\*.nupkg
name: NuGet
# Documentation
- path: Documentation\documentation.zip
name: Documentation
deploy:
# My Get (Every Build)
- provider: NuGet
server: https://www.myget.org/F/coderline/api/v2
api_key:
secure: sQI+q8oHDFwWAWOy/pvP4zHehqNASufniwX7aOpN03YlcKt44ZX/55guh2kGoJ2n
artifact: NuGet
# NuGet.org (Only Tagged on Master)
- provider: NuGet
api_key:
secure: 89W5Zsv2maiKx7/Bmn5zFFlKjPC2J7NnDRhPrpeH9hEnVvtDlWt04xR+kYi52dPt
artifact: NuGet
on:
branch: master
appveyor_repo_tag: true
# Documentation
- provider: Environment
name: AlphaTabDocumentation
on_success:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "AlphaTab Build Agent"
- git add Directory.Build.props
- git commit -m "%APPVEYOR_REPO_COMMIT_MESSAGE%, build %APPVEYOR_BUILD_VERSION%"
- git push origin "%APPVEYOR_REPO_BRANCH%"