-
Notifications
You must be signed in to change notification settings - Fork 20
/
appveyor.yml
75 lines (72 loc) · 3.37 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
version: 1.7.0.{build}
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x86
TOOLS: "MSVC"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x64
TOOLS: "MSVC"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PLATFORM: x86
TOOLS: "MinGW"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x86
TOOLS: "MSVC-IFaceEd"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x64
TOOLS: "MSVC-IFaceEd"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PLATFORM: x86
TOOLS: "MinGW-IFaceEd"
configuration:
- Debug
- Release
install:
- ps: if($env:PLATFORM -eq 'x64') {
$env:vcvar_arg = 'x86_amd64';
$env:ARCH = 'x64';
$env:MINGWPATH='C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw32\bin\';
$env:MINGWQTDIR='C:\Qt\5.11\mingw53_32\';
$env:MSVCQTDIR='C:\Qt\5.11\msvc2017_64\';
$env:IRRKLANG_ROOT_SUFFIX='3rdparty\irrKlang\x64';
$env:FREETYPE_DIR_SUFFIX='3rdparty\freetype\x64';
}
else {
$env:vcvar_arg = 'x86';
$env:ARCH = 'Win32';
$env:MINGWPATH='C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\';
$env:MINGWQTDIR='C:\Qt\5.11\mingw53_32\';
$env:MSVCQTDIR='C:\Qt\5.11\winrt_x86_msvc2017\';
$env:IRRKLANG_ROOT_SUFFIX='3rdparty\irrKlang\x32';
$env:FREETYPE_DIR_SUFFIX='3rdparty\freetype\x32';
}
- cmd: git submodule init
- cmd: git submodule update
- cmd: git submodule status
- ps: if($env:TOOLS -eq 'MinGW') { Get-Command sh.exe -All | Remove-Item }
- ps: if($env:TOOLS -eq 'MinGW-IFaceEd') { Get-Command sh.exe -All | Remove-Item }
- cmd: if [%TOOLS%]==[MSVC] "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
- cmd: if [%TOOLS%]==[MSVC] set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;%MSVCQTDIR\bin%;%PATH%
- cmd: if [%TOOLS%]==[MSVC] set QTDIR=%MSVCQTDIR%
- cmd: if [%TOOLS%]==[MinGW] SET PATH=%MINGWPATH%;%MINGWQTDIR%\bin;%PATH%
- cmd: if [%TOOLS%]==[MinGW] set QTDIR=%MINGWQTDIR%
- cmd: if [%TOOLS%]==[MSVC-IFaceEd] "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
- cmd: if [%TOOLS%]==[MSVC-IFaceEd] set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;%MSVCQTDIR\bin%;%PATH%
- cmd: if [%TOOLS%]==[MSVC-IFaceEd] set QTDIR=%MSVCQTDIR%
- cmd: if [%TOOLS%]==[MinGW-IFaceEd] SET PATH=%MINGWPATH%;%MINGWQTDIR%\bin;%PATH%
- cmd: if [%TOOLS%]==[MinGW-IFaceEd] set QTDIR=%MINGWQTDIR%
- cmd: set FREETYPE_DIR=%cd%\%FREETYPE_DIR_SUFFIX%\
- cmd: set FREETYPE_INCLUDE=%FREETYPE_DIR%include\
- cmd: set FREETYPE_LIB=%FREETYPE_DIR%lib\
- cmd: set IRRKLANG_ROOT=%cd%\%IRRKLANG_ROOT_SUFFIX%
- cmd: ruby prepare_build.rb
build_script:
- if [%TOOLS%]==[MSVC] "build-all-msvc.bat" %CONFIGURATION% %ARCH%
- if [%TOOLS%]==[MinGW] "build-all-mingw.bat" %CONFIGURATION%
- if [%TOOLS%]==[MSVC-IFaceEd] "build-ifaceed-msvc.bat" %CONFIGURATION% %ARCH%
- if [%TOOLS%]==[MinGW-IFaceEd] "build-ifaceed-mingw.bat" %CONFIGURATION%
test_script:
- "tests_prepare.bat"
- cd bin
- if [%TOOLS%] NEQ [MSVC-IFaceEd] ( if [%TOOLS%] NEQ [MinGW-IFaceEd] ( if [%CONFIGURATION%]==[Debug] ( "tests-debug.bat" ) ELSE ( "tests-release.bat" ) ) )