forked from Unvanquished/Unvanquished
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
84 lines (76 loc) · 2.69 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
branches:
except:
- debian
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
PYTHON: "C:\\Python27.10-x64"
PYTHON_VERSION: "2.7.10"
PYTHON_ARCH: "64"
matrix:
# - COMPILER: mingw64
# COMPILER_VERSION: "5.1.0"
# MINGW_VERSION: "v4-rev0"
# GENERATOR: "MinGW Makefiles"
# - COMPILER: msvc
# COMPILER_VERSION: "12.0"
# TARGET: x86
# GENERATOR: "NMake Makefiles"
# - COMPILER: msvc
# COMPILER_VERSION: "12.0"
# TARGET: x86_amd64
# GENERATOR: "NMake Makefiles"
- COMPILER: msvc
COMPILER_VERSION: "14.0"
TARGET: x86
GENERATOR: "NMake Makefiles"
# - COMPILER: msvc
# TARGET: x86_amd64
# COMPILER_VERSION: "14.0"
# GENERATOR: "NMake Makefiles"
matrix:
fast_finish: false
configuration: Debug
install:
- "powershell appveyor\\install.ps1"
build:
parallel: true
before_build:
- git submodule update --init --recursive
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- pip install -r src/utils/cbse/requirements.txt --upgrade
- ps: |
if ($env:COMPILER -eq "mingw64" -AND -Not (Test-Path "C:/mingw64")) {
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
$url += "mingw-builds/${env:COMPILER_VERSION}/threads-win32/seh/"
$url += "x86_64-${env:COMPILER_VERSION}-release-win32-seh-rt_${env:MINGW_VERSION}.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw64.7z
&7z x -oC:\ mingw64.7z > $null
$env:PATH = "C:/mingw64/bin;" + ($env:PATH -replace [regex]::escape("C:\Program Files (x86)\Git\bin"), "")
}
build_script:
- cmd: cmake --version
- cmd: mkdir build
- cmd: cd build
- ps: |
if ($env:COMPILER -eq "msvc") {
pushd "${env:ProgramFiles(x86)}/Microsoft Visual Studio ${env:COMPILER_VERSION}/VC/"
cmd /c "vcvarsall.bat $env:TARGET & set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
} elseif ($env:COMPILER -eq "mingw64") {
$env:CC="gcc"
$env:CXX="g++"
}
cmake -DUSE_PRECOMPILED_HEADER=0 -DUSE_WERROR=1 -DBE_VERBOSE=1 -G "${env:GENERATOR}" -DBUILD_GAME_NACL=0 -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .