-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
51 lines (43 loc) · 1.39 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
os: Visual Studio 2019
branches:
only:
- master
- test
- next
environment:
matrix:
- COMPILER: msvc
GENERATOR: Visual Studio 16 2019
PLATFORM: x64
BUILD_TYPE: Debug
- COMPILER: msvc
GENERATOR: Visual Studio 16 2019
PLATFORM: x64
BUILD_TYPE: Release
- COMPILER: msvc
GENERATOR: Visual Studio 16 2019
PLATFORM: Win32
BUILD_TYPE: Debug
- COMPILER: msvc
GENERATOR: Visual Studio 16 2019
PLATFORM: Win32
BUILD_TYPE: Release
install:
- echo Installing %COMPILER% %PLATFORM% %BUILD_TYPE%
- git submodule -q update --init --recursive
- if defined BINDIR (set "PATH=%BINDIR%;%PATH%")
build_script:
- md build
- cd build
- cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DCMAKE_SH=CMAKE_SH-NOTFOUND -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\baryonyx ..
- if "%COMPILER%"=="msvc" cmake --build . --config "%BUILD_TYPE%"
- if "%COMPILER%"=="msvc" cmake --build . --config "%BUILD_TYPE%" --target install
- if not "%COMPILER%"=="msvc" cmake --build .
- if not "%COMPILER%"=="msvc" cmake --build . --target install
- ctest --output-on-failure --verbose -C "%BUILD_TYPE%" -E testoptimizer
after_build:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: 7z a baryonyx-%COMPILER%-%PLATFORM%-%BUILD_TYPE%.zip baryonyx
artifacts:
- path: baryonyx-%COMPILER%-%PLATFORM%-%BUILD_TYPE%.zip
name: app