-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
38 lines (31 loc) · 1.32 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
cache:
- "i686-6.2.0-release-posix-dwarf-rt_v5-rev1.7z"
environment:
machine_user: test_user
machine_pass: Pass@word1
mingw_url: "https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.2.0/threads-posix/dwarf/i686-6.2.0-release-posix-dwarf-rt_v5-rev1.7z/download"
mingw_archive: "i686-6.2.0-release-posix-dwarf-rt_v5-rev1.7z"
mingw_directory: mingw32
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- BUILD_TYPE: release
STATIC_LIBRARIES: FALSE
- BUILD_TYPE: release
STATIC_LIBRARIES: TRUE
install:
- ps: net user /add $env:machine_user $env:machine_pass
- ps: net localgroup administrators $env:machine_user /add
- if not exist "%mingw_archive%" appveyor DownloadFile "%mingw_url%" -FileName "%mingw_archive%"
- 7z x -y "%mingw_archive%" > nul
before_build:
- set Path=%CD%\%mingw_directory%\bin;%Path%
- g++ --version
- cmake --version
- ps: Get-Command sh.exe -All | Remove-Item
- ps: new-item -Name build -ItemType directory
- ps: cd build
- cmake .. -G "MinGW Makefiles" -Dbuild_type=%BUILD_TYPE% -Dstatic_libraries=%STATIC_LIBRARIES% -Dno_link_time_optimization=TRUE
build_script:
- cmake --build . --use-stderr --target all -- -j%NUMBER_OF_PROCESSORS%
after_build:
- cmake --build . --use-stderr --target test