forked from kanekikun420/NoCheatZ-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
84 lines (59 loc) · 2.27 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
version: v4-r{build}
pull_requests:
do_not_increment_build_number: true
max_jobs: 2
skip_branch_with_pr: true
image: Visual Studio 2017
branches:
only:
- master
- /^v4-r\d+$/
configuration:
- Debug
- Release
platform: Win32
clone_folder: c:\github\NoCheatZ-4
install:
- ps: >-
git submodule update --init --recursive
cd c:\github\NoCheatZ-4\server-plugin\SourceSdk\Interfaces\Protobuf\
Start-FileDownload "https://github.com/google/protobuf/archive/v2.5.0.zip"
Expand-Archive v2.5.0.zip -DestinationPath c:\github\NoCheatZ-4\server-plugin\SourceSdk\Interfaces\Protobuf\
del v2.5.0.zip
cd protobuf-2.5.0\
Start-FileDownload "https://github.com/google/googletest/archive/release-1.5.0.zip"
Expand-Archive release-1.5.0.zip -DestinationPath c:\github\NoCheatZ-4\server-plugin\SourceSdk\Interfaces\Protobuf\protobuf-2.5.0\
del release-1.5.0.zip
Rename-Item googletest-release-1.5.0 gtest
cd c:\github\NoCheatZ-4\scripts
C:\Python36\python.exe version.py
build:
project: nocheatz.sln
parallel: true
verbosity: minimal
after_build:
- ps: >-
$ErrorActionPreference = 'SilentlyContinue'
$p0 = $env:configuration + "\*"
$p3 = $env:configuration + "-Windows.zip"
$p1 = "out\" + $p3
$p2 = "Builds\" + $p1
cd c:\github\NoCheatZ-4\Builds
Get-ChildItem c:\github\NoCheatZ-4\Builds -Include *.exp -Recurse | foreach ($_) {Remove-Item $_.fullname}
Get-ChildItem c:\github\NoCheatZ-4\Builds -Include *.ilk -Recurse | foreach ($_) {Remove-Item $_.fullname}
Get-ChildItem c:\github\NoCheatZ-4\Builds -Include *.lib -Recurse | foreach ($_) {Remove-Item $_.fullname}
Get-ChildItem c:\github\NoCheatZ-4\Builds -Include *.bsc -Recurse | foreach ($_) {Remove-Item $_.fullname}
Get-ChildItem c:\github\NoCheatZ-4\Builds -Include .gitignore -Recurse | foreach ($_) {Remove-Item $_.fullname}
New-Item -ItemType directory -Path out
Compress-Archive -Path $p0 -DestinationPath $p1
cd ..
Push-AppveyorArtifact $p2 -FileName $p3 -DeploymentName deploy-out
deploy:
- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: NoCheatZ $(appveyor_repo_tag_name)
auth_token:
secure: cmeI5Mwc+kiqp/KVpsM++TVOdsmMhb1jIAnW9oeV27mxuQpiHD5uu1zlHCD9ttLA
artifact: deploy-out
on:
appveyor_repo_tag: true