forked from callofduty4x/CoD4x_Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
67 lines (47 loc) · 1.59 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
version: 1.0.{build}
before_build:
- ps: >-
choco install -y mingw -x86
ls "C:/tools"
ls "C:/tools/mingw32"
ls "C:/tools/mingw32/bin"
Write-Host " Downloading pexports..."
curl -o "pexports.tar.xz" "https://github.com/callofduty4x/CoD4x_Server/raw/master/tools/pexports-0.47-mingw32-bin.tar.xz"
Write-Host " Installing pexports..."
7z x pexports.tar.xz | Out-Null
7z x pexports.tar | Out-Null
Write-Host "Setting up NASM:"
Write-Host " Downloading NASM..."
curl -o nasminst.exe http://libgd.blob.core.windows.net/nasm/nasm-2.07-installer.exe
Write-Host " Installing NASM..."
.\nasminst.exe /S
Write-Host "Setting up environment variables."
[Environment]::SetEnvironmentVariable("PATH", "C:\tools\mingw32\bin;$pwd\bin;C:\Program Files (x86)\nasm;$($env:path)")
build_script:
- cmd: >-
echo "Building server code:"
mingw32-make.exe
cd plugins && build_plugins.cmd && cd ..
echo "Done."
test_script:
- ps: ./bin/cod4x18_dedrun.exe
branches:
only:
- master # Ignore all other branches.
- refactoring
artifacts:
- path: bin\cod4x18_dedrun.exe
name: cod4exe
- path: plugins\**\*.dll
name: plugins
deploy:
- provider: GitHub
auth_token:
secure: Je7YohhSVawAyVkWQG3zyoppIB73CjJB99IlzzJzosFJ5NeBkYLUuA2SV52LTWXj
artifact: cod4exe, plugins
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only