forked from Pelagicore/facelift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
65 lines (59 loc) · 2.85 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
environment:
matrix:
- COMPILER: MSVC_15
ARCHITECTURE: x64
BUILD_TESTS: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- COMPILER: MSVC_15
ARCHITECTURE: x86
BUILD_TESTS: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- COMPILER: MINGW_73
ARCHITECTURE: x64
BUILD_TESTS: true
- COMPILER: MINGW_532
ARCHITECTURE: x86
BUILD_TESTS: true
build:
verbosity: detailed
parallel: true
install:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
- mkdir C:\projects\deps
- cd C:\projects\deps
#######################################################################################
# Install Ninja
#######################################################################################
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip"
- appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
- 7z x ninja.zip -oC:\projects\deps\ninja > nul
- set PATH=C:\projects\deps\ninja;%PATH%
- ninja --version
#######################################################################################
# Install doxygen
#######################################################################################
- ps: >-
If ($env:BUILD_DOCU -Match "true") {
$env:DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.windows.bin.zip"
appveyor DownloadFile $env:DOXYGEN_URL -FileName doxygen.zip
7z x doxygen.zip -oC:/projects/deps/doxygen-1.8.10 > $null
$env:PATH="C:/projects/deps/doxygen-1.8.10;$env:PATH"
doxygen --version
}
before_build:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: set PATH=C:\Python37-x64;%PATH%
- cmd: python -m pip install antlr4-python3-runtime six pyyaml click typing jinja2 watchdog path.py
- IF "%ARCHITECTURE%" == "x64" IF "%COMPILER%" == "MSVC_15" set PATH=C:\Qt\5.12.2\msvc2017_64\bin;%PATH%
- IF "%ARCHITECTURE%" == "x64" IF "%COMPILER%" == "MSVC_15" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd.bat" -arch=x64 -host_arch=x64
- IF "%ARCHITECTURE%" == "x86" IF "%COMPILER%" == "MSVC_15" set PATH=C:\Qt\5.12.2\msvc2017\bin;%PATH%
- IF "%ARCHITECTURE%" == "x86" IF "%COMPILER%" == "MSVC_15" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd.bat" -arch=x86 -host_arch=x64
- IF "%ARCHITECTURE%" == "x64" IF "%COMPILER%" == "MINGW_73" set PATH=C:\Qt\Tools\mingw730_64\bin;C:\Qt\5.12.2\mingw73_64\bin;%PATH%
- IF "%ARCHITECTURE%" == "x86" IF "%COMPILER%" == "MINGW_532" set PATH=C:\Qt\Tools\mingw530_32\bin;C:\Qt\5.11.3\mingw53_32\bin;%PATH%
build_script:
- mkdir build
- cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DFACELIFT_BUILD_TESTS=%BUILD_TESTS%
- ninja
# - if "%BUILD_TESTS%" == "true" (ctest) # when you want to run the tests, use this uncomment this line