forked from mvdevs/jk2mv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
62 lines (52 loc) · 1.66 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
os: Visual Studio 2015
version: jk2mv-{build}
environment:
matrix:
- TYPE: "win-x86-installer"
- TYPE: "win-x86-portable"
- TYPE: "win-x64-portable"
install:
- git submodule update --init --recursive
build_script:
- ps: |
$version = git describe --tags
Update-AppveyorBuild -Version $version
cd build
mkdir appveyor
cd appveyor
if ($env:TYPE -eq "win-x86-installer") {
choco install -y nsis
cmake -G "Visual Studio 14" -DBuildPortableVersion=OFF ../..
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
} elseif ($env:TYPE -eq "win-x86-portable") {
cmake -G "Visual Studio 14" -DBuildPortableVersion=ON ../..
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
} elseif ($env:TYPE -eq "win-x64-portable") {
cmake -G "Visual Studio 14 Win64" -DBuildPortableVersion=ON ../..
msbuild /m /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
}
if (! $?) {
throw "Build failed."
}
cd $env:APPVEYOR_BUILD_FOLDER\build\appveyor\out
Get-ChildItem "*.exe" | % { Push-AppveyorArtifact $_.Name }
Get-ChildItem "*.zip" | % { Push-AppveyorArtifact $_.Name }
deploy:
- provider: BinTray
username: ouned
api_key:
secure: qpzkDGuG2cXmXNsOuBfZxaR2Bsj9AAYHx533UfRQWPSvYMsGxiTd8Kx2851Ey957
subject: mvdevs
repo: jk2mv
package: jk2mv-dev
publish: true
override: true
explode: false
on:
appveyor_repo_tag: false
- provider: GitHub
description: ''
auth_token:
secure: QZNpf5euIq4+cVLazVgYHe1EpbW3en/IOaNHmr9QNHa+TDJW5GWcjp/XDa/gnU42
on:
appveyor_repo_tag: true