forked from tlx/tlx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
39 lines (35 loc) · 1.05 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
version: 0.1.{build}
pull_requests:
do_not_increment_build_number: true
image:
- Visual Studio 2017
configuration:
- Debug
- Release
platform:
- x64
clone_folder: c:\dev\tlx
init:
- set arch=
- if "%PLATFORM%"=="x64" (set arch= Win64)
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set generator="Visual Studio 15 2017%arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set generator="Visual Studio 14 2015%arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set generator="Visual Studio 12 2013%arch%")
- echo %generator%
- set more_tests=OFF
- if "%CONFIGURATION%"=="Release" (set more_tests=ON)
before_build:
- cmd: |-
echo Running cmake for %generator%...
echo %CONFIGURATION%
cd c:\dev\tlx
md build
cd build
cmake -G %generator% -DTLX_BUILD_TESTS=ON -DTLX_TRY_COMPILE_HEADERS=ON -DTLX_MORE_TESTS=%more_tests% ..
build:
project: c:\dev\tlx\build\tlx.sln
parallel: true
verbosity: minimal
test_script:
- cmd: ctest -V --build-config %CONFIGURATION%